CVE-2026-57886: CWE-639 in Gitea Gitea Open Source Git Server
Cross-repository issue/comment attachment re-linking can expose private attachment content
AI Analysis
Technical Summary
Gitea's issue and comment attachment update functionality improperly accepts attachment UUIDs without verifying repository ownership. This allows an authenticated attacker with edit permissions on issues or comments in a repository they can read to re-link a known victim's attachment UUID to their own issue or comment. As a result, subsequent access checks use the attacker's repository authorization context, potentially exposing private attachment content from the victim repository. The vulnerability affects all versions prior to 1.27.0. A patch is available that enforces repository and linkage validation before attachment updates.
Potential Impact
An attacker with limited privileges (read access and ability to edit issues/comments) can gain unauthorized access to private attachment content from other repositories by re-linking attachments. This leads to confidentiality breaches of private data stored as attachments. The vulnerability does not allow modification of victim repository data but exposes sensitive content through improper access control.
Mitigation Recommendations
A patch is available for Gitea that fixes this vulnerability by adding repository and linkage validation before updating attachments. Users should upgrade to version 1.27.0 or later to remediate this issue. Until patched, restrict issue and comment editing permissions to trusted users and avoid sharing attachment UUIDs publicly.
CVE-2026-57886: CWE-639 in Gitea Gitea Open Source Git Server
Description
Cross-repository issue/comment attachment re-linking can expose private attachment content
CVSS v3.1
Score 5.9medium
Affected software
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
Technical Analysis
Gitea's issue and comment attachment update functionality improperly accepts attachment UUIDs without verifying repository ownership. This allows an authenticated attacker with edit permissions on issues or comments in a repository they can read to re-link a known victim's attachment UUID to their own issue or comment. As a result, subsequent access checks use the attacker's repository authorization context, potentially exposing private attachment content from the victim repository. The vulnerability affects all versions prior to 1.27.0. A patch is available that enforces repository and linkage validation before attachment updates.
Potential Impact
An attacker with limited privileges (read access and ability to edit issues/comments) can gain unauthorized access to private attachment content from other repositories by re-linking attachments. This leads to confidentiality breaches of private data stored as attachments. The vulnerability does not allow modification of victim repository data but exposes sensitive content through improper access control.
Mitigation Recommendations
A patch is available for Gitea that fixes this vulnerability by adding repository and linkage validation before updating attachments. Users should upgrade to version 1.27.0 or later to remediate this issue. Until patched, restrict issue and comment editing permissions to trusted users and avoid sharing attachment UUIDs publicly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6c6r-5xr4-cr5m
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-57886"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a600abb9c2644c7f8fe2b8b
Added to database: 07/22/2026, 00:11:39 UTC
Last enriched: 08/14/2026, 12:57:08 UTC
Last updated: 09/10/2026, 22:16:07 UTC
Views: 61
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.