CVE-2026-58420 Local File Inclusion via file:// URI in Migration Restore
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.
| Package | Affected | Fixed in |
|---|---|---|
gitea.dev Go | All versions | 1.27.0 |
gitea.dev Go | All versions | 1.27.0 |
gitea.dev Go | All versions | 1.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.