CVE-2026-58420
Received Received - Intake

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

Vulnerability report for CVE-2026-58420, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: Gitea Limited

Description

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

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-08-13
AI Q&A
2026-08-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
gitea gitea to 1.26.4 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-284 The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-58420 is a Local File Inclusion vulnerability in Gitea affecting versions up to 1.26.4. It allows attackers with admin or operator access to read arbitrary files on the server by exploiting the file:// URI scheme in the migration restore feature. Attackers craft a malicious archive with a release.yml file containing a file:// URL pointing to sensitive files. When processed during repository restoration, the server reads the targeted file and stores it as a release attachment accessible via the Gitea API.

Detection Guidance

Check Gitea logs for suspicious restore operations involving file:// URIs. Inspect release attachments for unexpected files. Review admin/operator access logs for unauthorized file reads. Look for archives containing release.yml with file:// URLs.

Impact Analysis

This vulnerability can lead to unauthorized access to sensitive server files such as /etc/passwd, SSH keys, or configuration files. Attackers with admin or operator privileges can exploit it to steal confidential data, compromise the server, or escalate privileges. The impact includes data breaches, system compromise, and potential lateral movement within the network.

Compliance Impact

This vulnerability can severely impact compliance with GDPR and HIPAA by enabling unauthorized access to sensitive personal or health data. GDPR requires protection of personal data, and HIPAA mandates safeguards for protected health information. A breach could result in legal penalties, fines, and reputational damage due to non-compliance with these regulations.

Mitigation Strategies

Restrict restore-repo execution to trusted operators only. Manually audit archive contents before restoration. Validate DownloadURL schemes in gitea_uploader.go to block file:// URIs. Temporarily disable migration restore functionality if possible.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-58420. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart