Description
Local File Inclusion via file:// URI in Migration Restore
Published: 2026-08-13
Score: 4.4 Medium
EPSS: < 1% Very Low
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 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.

Generated by OpenCVE AI on August 14, 2026 at 20:43 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 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

Fri, 14 Aug 2026 18:30:00 +0000

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


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-14T17:43:31.912Z

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

Link: CVE-2026-58420

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

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

Modified: 2026-08-26T16:53:48.300

Link: CVE-2026-58420

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T20:45:03Z

Weaknesses