CVE-2026-58420: CWE-284 in Gitea Gitea Open Source Git Server
Local File Inclusion via file:// URI in Migration Restore
AI Analysis
Technical Summary
The vulnerability in Gitea before version 1.27.0 involves improper validation of the DownloadURL field in release attachments used during the restore-repo command. This field supports the file:// URI scheme without restrictions, allowing an attacker with operator-level privileges who can supply a crafted archive to cause the server to read arbitrary local files. The contents of these files can then be stored as release attachments accessible via the API, constituting a local file inclusion (LFI) vulnerability. The CVSS 4.0 vector indicates a local attack vector requiring high privileges, with moderate impact on confidentiality and no impact on integrity or availability.
Potential Impact
An attacker with operator-level access can read arbitrary files on the server that the Gitea process user can access. These files' contents can be exposed via the API as release attachments, potentially leaking sensitive information. There is no indication of remote exploitation without operator privileges or impact on system integrity or availability.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Gitea to version 1.27.0 or later to remediate this issue. Since this is not a cloud service, remediation depends on applying the official fix. No additional mitigations are indicated.
CVE-2026-58420: CWE-284 in Gitea Gitea Open Source Git Server
Description
Local File Inclusion via file:// URI in Migration Restore
CVSS v3.1
Score 4.4medium
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
The vulnerability in Gitea before version 1.27.0 involves improper validation of the DownloadURL field in release attachments used during the restore-repo command. This field supports the file:// URI scheme without restrictions, allowing an attacker with operator-level privileges who can supply a crafted archive to cause the server to read arbitrary local files. The contents of these files can then be stored as release attachments accessible via the API, constituting a local file inclusion (LFI) vulnerability. The CVSS 4.0 vector indicates a local attack vector requiring high privileges, with moderate impact on confidentiality and no impact on integrity or availability.
Potential Impact
An attacker with operator-level access can read arbitrary files on the server that the Gitea process user can access. These files' contents can be exposed via the API as release attachments, potentially leaking sensitive information. There is no indication of remote exploitation without operator privileges or impact on system integrity or availability.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Gitea to version 1.27.0 or later to remediate this issue. Since this is not a cloud service, remediation depends on applying the official fix. No additional mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5ggr-2f2h-jmvm
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58420"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a600ab19c2644c7f8fe1c97
Added to database: 07/22/2026, 00:11:29 UTC
Last enriched: 08/14/2026, 12:57:50 UTC
Last updated: 08/26/2026, 22:52:11 UTC
Views: 37
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.