Advisory record · GHSA-5ggr-2f2h-jmvm

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

CVSS 4.4 MediumEPSS 0.0047 · 41st percentile

Published by the GitHub Advisory Database at 21 Jul 2026, 20:59 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitea.devGo<1.27.01.27.0
Identifiers
GHSA-5ggr-2f2h-jmvm · CVE-2026-58420 · GO-2026-6032
Weakness (CWE)
CWE-73 · CWE-284
Published
21 Jul 2026
Updated
22 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Gitea versions before 1.27.0 are affected by a local file inclusion flaw in the migration restore path, where a release attachment's download URL can use the file:// scheme and be read from the server's filesystem. An attacker who can supply a crafted archive to the restore-repo command, which is typically an operator with direct server access, can read files the Gitea process can access and store them as release attachments. Upgrade to Gitea 1.27.0 or later. The source lists the workaround of restricting restore-repo use to fully trusted operators and auditing archives before restoration.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
4.4 Medium 3.1 CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N ADP (CISA-ADP)
  • CISA KEV Not listed.
  • EPSS 0.0047, the 41st percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:57 UTC First seen by agentprime
  2. 31 Oct 2026, 14:57 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.