CVE-2026-58420

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

Published Aug 13, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
Description
Local File Inclusion via file:// URI in Migration Restore

Analysis

AI-generated

Technical impact

Gitea’s migration restore routine accepts a file:// URI, allowing a local file inclusion (CWE‑284). This flaw can enable an attacker to read arbitrary files on the host or, if an inclusion endpoint is exploitable, execute arbitrary code. The impact is a compromise of confidentiality, integrity and possibly availability of the affected instance.

Affected Systems

The vulnerability is present in Gitea Open Source Git Server, though specific affected versions are not listed in the data. It applies to installations that expose the migration restore functionality.

Risk and Exploitability

The EPSS score of 0.00302, well below 1%, indicates a very low probability of exploitation and is not listed in the CISA KEV catalog, implying limited publicly known exploitation. The likely attack vector is that an authenticated user with migration privileges can supply a file:// URI; thus the exploitation likelihood depends on who can access the feature. The CVSS score of 4.4 indicates moderate risk, but local file inclusion is still a significant weakness.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Gitea 1.27.0 or later to apply the vendor fix.
  • Disable the migration restore feature or restrict it to trusted administrators if the service is not required.
  • Avoid using file:// URIs in migration restores; instead point to local paths that are validated and outside sensitive directories.

Generated by OpenCVE AI on August 14, 2026 at 20:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5ggr-2f2h-jmvm Gitea: Local File Inclusion via file:// URI in Migration Restore
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Type Values Removed Values Added
Description Local File Inclusion via file:// URI in Migration Restore
Title Local File Inclusion via file:// URI in Migration Restore
Weaknesses CWE-284
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Aug 14, 2026, 5:43 PM
Reserved
Jun 30, 2026, 6:57 PM
Status
Deferred
Published
Aug 13, 2026, 5:17 PM
Modified
Aug 26, 2026, 4:53 PM