Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Gitea.dev: Gitea: Fork-PR Actions task can read a third private repository via the collaborative-owner branch (missing fork-PR guard) (CVE-2026-58416)

0
Medium
Published: 07/21/2026 (07/21/2026, 20:40:03 UTC)
Source: GCVE Database
Product: gitea.dev

Description

A vulnerability in Gitea prior to version 1.27.0 allows a fork pull-request Actions workflow to read a third private repository if that repository trusts the fork's base repository owner as a collaborative owner. This occurs because the permission check for Actions tasks lacks a guard against fork pull-requests in the collaborative-owner branch, enabling unauthorized read access to private repositories. The impact is a read-only confidentiality breach exposing the full source code of a third private repository to an untrusted fork PR author.

CVSS v3.1

Score 6.3medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N

Affected software

Goghsa
gitea.dev
Affected versions
<1.27.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 00:49:35 UTC

Technical Analysis

In Gitea versions before 1.27.0, the function GetActionsUserRepoPermission incorrectly grants code-read permission to a fork pull-request Actions workflow on a private repository B if B lists the fork's base repository owner A as a collaborative owner. This is due to the absence of a check for task.IsForkPullRequest in the collaborative-owner branch of the permission logic, unlike sibling branches that correctly deny fork PRs cross-repo access. Consequently, an attacker controlling a fork PR workflow can clone and read repository B, which they have no direct rights to, resulting in a confidentiality breach. The vulnerability requires that repository B is configured to trust owner A as a collaborative owner and that the fork PR workflow runs, typically after prior approval. The issue is limited to read-only access and does not allow write or code execution.

Potential Impact

This vulnerability leads to a confidentiality breach where an attacker controlling a fork pull-request workflow can read the full source code of a third private repository that trusts the fork's base repository owner as a collaborative owner. The attacker gains unauthorized read access to repository B despite having no direct permissions on it. The breach is read-only, with no impact on integrity or availability. The exploit requires repository B to be private and configured with a collaborative owner trust relationship, and the fork PR workflow must be executed.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The suggested remediation is to add a guard that denies fork pull-request workflows the collaborative-owner cross-repo read permission, matching sibling permission branches. Until an official fix is available, avoid configuring private repositories with collaborative-owner trust for repositories that accept fork pull-requests, or restrict fork PR workflow execution. Monitor vendor communications for an official patch release.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-fj8v-hjwv-qm88
Osv Schema Version
1.4.0
Aliases
["CVE-2026-58416"]
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a600ab79c2644c7f8fe24e2

Added to database: 07/22/2026, 00:11:35 UTC

Last enriched: 07/22/2026, 00:49:35 UTC

Last updated: 07/31/2026, 12:28:12 UTC

Views: 16

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses