Description
Local File Inclusion via file:// URI in Migration Restore
Published: 2026-08-13
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 CVE has no EPSS score listed and is not in the CISA KEV catalog, implying limited publicly known exploitation. The 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 absence of an explicit CVSS score means the technical severity cannot be quantified here, but local file inclusion is generally regarded as a high‑risk weakness.

Generated by OpenCVE AI on August 13, 2026 at 18:45 UTC.

Remediation

No vendor fix or workaround currently provided.

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 13, 2026 at 18:45 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

Thu, 13 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Thu, 13 Aug 2026 17:00:00 +0000

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

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-08-13T16:44:47.452Z

Reserved: 2026-06-30T18:57:20.614Z

Link: CVE-2026-58420

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-13T17:17:26.513

Modified: 2026-08-13T17:17:26.513

Link: CVE-2026-58420

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T19:00:12Z

Weaknesses