Skip to main content
EPSS 0.3%top 83%

CVE-2026-57886: CWE-639 in Gitea Gitea Open Source Git Server

0
Medium
Published: 08/13/2026 (08/13/2026, 16:44:44 UTC)
Source: GCVE Database
Vendor/Project: Gitea
Product: Gitea Open Source Git Server

Description

Cross-repository issue/comment attachment re-linking can expose private attachment content

CVSS v3.1

Score 5.9medium

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

Affected software

Goghsa
code.gitea.io/gitea
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: 08/14/2026, 12:57:08 UTC

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.

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