CVE-2026-57894: CWE-918 in Gitea Gitea Open Source Git Server
Repository Migration Follows Git HTTP Redirects After URL Allow/Block Validation, Enabling Internal Git Repository Exfiltration
AI Analysis
Technical Summary
Gitea before version 1.27.0 performs URL allow/block validation on repository migration URLs but does not restrict the Git client from following HTTP redirects. An authenticated user with low privileges can submit a public Git URL that redirects to an internal or blocked Git repository, causing the Git client to fetch data from the redirected internal endpoint. This enables exfiltration of internal Git repositories during migration or mirror fetch operations. The vulnerability is tracked as CVE-2026-57894 with a CVSS 3.1 score of 8.5 (high severity). No evidence of unauthenticated exploitation or remote code execution exists. A patch is available to fix this issue.
Potential Impact
This vulnerability allows low-privileged authenticated users to bypass URL allow/block policies and exfiltrate internal Git repository data by exploiting HTTP redirects during repository migration or mirror fetch operations. The impact is high for internet-facing Gitea instances with migration enabled, potentially exposing sensitive internal repositories and secrets. It does not directly enable remote code execution or unauthenticated access but can lead to critical data exposure if sensitive internal data is leaked.
Mitigation Recommendations
A patch is available for Gitea version 1.27.0 and later that addresses this vulnerability. Users should upgrade to version 1.27.0 or newer to remediate this issue. Until patched, restrict repository migration and mirror fetch operations to trusted users and carefully control access to internal Git repositories. Monitor and review migration URLs and redirects to detect potential abuse.
CVE-2026-57894: CWE-918 in Gitea Gitea Open Source Git Server
Description
Repository Migration Follows Git HTTP Redirects After URL Allow/Block Validation, Enabling Internal Git Repository Exfiltration
CVSS v3.1
Score 8.5high
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
Gitea before version 1.27.0 performs URL allow/block validation on repository migration URLs but does not restrict the Git client from following HTTP redirects. An authenticated user with low privileges can submit a public Git URL that redirects to an internal or blocked Git repository, causing the Git client to fetch data from the redirected internal endpoint. This enables exfiltration of internal Git repositories during migration or mirror fetch operations. The vulnerability is tracked as CVE-2026-57894 with a CVSS 3.1 score of 8.5 (high severity). No evidence of unauthenticated exploitation or remote code execution exists. A patch is available to fix this issue.
Potential Impact
This vulnerability allows low-privileged authenticated users to bypass URL allow/block policies and exfiltrate internal Git repository data by exploiting HTTP redirects during repository migration or mirror fetch operations. The impact is high for internet-facing Gitea instances with migration enabled, potentially exposing sensitive internal repositories and secrets. It does not directly enable remote code execution or unauthenticated access but can lead to critical data exposure if sensitive internal data is leaked.
Mitigation Recommendations
A patch is available for Gitea version 1.27.0 and later that addresses this vulnerability. Users should upgrade to version 1.27.0 or newer to remediate this issue. Until patched, restrict repository migration and mirror fetch operations to trusted users and carefully control access to internal Git repositories. Monitor and review migration URLs and redirects to detect potential abuse.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-82f7-87hm-852x
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-57894"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a600ac79c2644c7f8fe3a9d
Added to database: 07/22/2026, 00:11:51 UTC
Last enriched: 08/14/2026, 12:57:20 UTC
Last updated: 09/04/2026, 22:52:13 UTC
Views: 103
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.