Gitea.dev: Gitea: Cross-repository IDOR in issue-dependency removal lets an attacker tamper with and comment on private repos they cannot access (CVE-2026-58438)
A cross-repository Insecure Direct Object Reference (IDOR) vulnerability in Gitea before version 1.27.0 allows an attacker with write access to issues in one repository to remove issue dependencies and post comments on issues in private repositories they cannot access. This occurs because the RemoveDependency function lacks proper permission checks for cross-repository dependencies, unlike the AddDependency function. The vulnerability enables unauthorized modification of issue dependency links and injection of attacker-authored comments in private repositories without read or write access.
AI Analysis
Technical Summary
The RemoveDependency function in Gitea's issue dependency management does not verify permissions when removing dependencies across repositories. It fetches the dependency issue by its global ID without checking if the user has access rights to the target repository. Consequently, an attacker with write access to issues in one repository can remove a dependency linked to an issue in a private repository they cannot access and add a comment attributed to themselves on that private issue. This is a broken access control vulnerability (CWE-862) that allows unauthorized write actions crossing repository boundaries. The AddDependency function correctly enforces permission checks for cross-repository dependencies, but RemoveDependency does not. The issue affects all versions prior to 1.27.0.
Potential Impact
An attacker with write access to issues in one repository can tamper with issue dependency relationships and inject comments into issues in private repositories without having read or write access to those private repositories. The vulnerability does not disclose repository content but allows unauthorized modification of issue-tracking state and insertion of attacker-authored comments, violating repository access controls. The impact is limited to existing dependency links and does not allow broader repository compromise or data leakage.
Mitigation Recommendations
A fix is available in Gitea version 1.27.0 and later, which adds proper cross-repository permission checks in the RemoveDependency function to ensure the user has read access to the target repository's issues before allowing dependency removal. Users should upgrade to version 1.27.0 or later to remediate this vulnerability. Until then, restrict issue write permissions carefully and monitor for suspicious dependency removals. Patch status is confirmed by the affectedVersions field indicating versions prior to 1.27.0 are vulnerable.
Gitea.dev: Gitea: Cross-repository IDOR in issue-dependency removal lets an attacker tamper with and comment on private repos they cannot access (CVE-2026-58438)
Description
A cross-repository Insecure Direct Object Reference (IDOR) vulnerability in Gitea before version 1.27.0 allows an attacker with write access to issues in one repository to remove issue dependencies and post comments on issues in private repositories they cannot access. This occurs because the RemoveDependency function lacks proper permission checks for cross-repository dependencies, unlike the AddDependency function. The vulnerability enables unauthorized modification of issue dependency links and injection of attacker-authored comments in private repositories without read or write access.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The RemoveDependency function in Gitea's issue dependency management does not verify permissions when removing dependencies across repositories. It fetches the dependency issue by its global ID without checking if the user has access rights to the target repository. Consequently, an attacker with write access to issues in one repository can remove a dependency linked to an issue in a private repository they cannot access and add a comment attributed to themselves on that private issue. This is a broken access control vulnerability (CWE-862) that allows unauthorized write actions crossing repository boundaries. The AddDependency function correctly enforces permission checks for cross-repository dependencies, but RemoveDependency does not. The issue affects all versions prior to 1.27.0.
Potential Impact
An attacker with write access to issues in one repository can tamper with issue dependency relationships and inject comments into issues in private repositories without having read or write access to those private repositories. The vulnerability does not disclose repository content but allows unauthorized modification of issue-tracking state and insertion of attacker-authored comments, violating repository access controls. The impact is limited to existing dependency links and does not allow broader repository compromise or data leakage.
Mitigation Recommendations
A fix is available in Gitea version 1.27.0 and later, which adds proper cross-repository permission checks in the RemoveDependency function to ensure the user has read access to the target repository's issues before allowing dependency removal. Users should upgrade to version 1.27.0 or later to remediate this vulnerability. Until then, restrict issue write permissions carefully and monitor for suspicious dependency removals. Patch status is confirmed by the affectedVersions field indicating versions prior to 1.27.0 are vulnerable.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-xv9x-fj9g-vj6h
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58438"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- LOW
- Cvss Version
- 4.0
Threat ID: 6a600ab89c2644c7f8fe261f
Added to database: 07/22/2026, 00:11:36 UTC
Last enriched: 07/22/2026, 00:50:41 UTC
Last updated: 07/22/2026, 01:34:01 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.