CVE-2026-58420 Local File Inclusion via file:// URI in Migration Restore

Medium 4.4 Published Updated

Attackers can read arbitrary local files via file:// URIs during migration restore in Gitea Git Server.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-58420?

CVE-2026-58420 is a medium-severity path traversal vulnerability in Gitea Open Source Git Server, published on 13 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

Weakness: CWE-284

Which versions are affected by CVE-2026-58420?

3 open source packages ship an affected version, including gitea.dev.

PackageAffectedFixed in
gitea.dev GoAll versions1.27.0
gitea.dev GoAll versions1.27.0
gitea.dev GoAll versions1.27.0

How do I fix CVE-2026-58420?

Upgrade gitea.dev to 1.27.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-58420 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58420 exists.

Sources

Also known as GHSA-5ggr-2f2h-jmvm, GO-2026-6032.

Is CVE-2026-58420 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free