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…
EPSS 0.4%top 66%

CVE-2026-58420: CWE-284 in Gitea Gitea Open Source Git Server

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

Description

Local File Inclusion via file:// URI in Migration Restore

CVSS v3.1

Score 4.4medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A: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: 08/14/2026, 12:57:50 UTC

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.

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