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: Cross-repository IDOR in issue-dependency removal lets an attacker tamper with and comment on private repos they cannot access (CVE-2026-58438)

0
Low
Published: 07/21/2026 (07/21/2026, 20:36:59 UTC)
Source: GCVE Database
Product: gitea.dev

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

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA: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:50:41 UTC

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.

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-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 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