CVE-2026-28705 Gitea repository dumps write release assets using unsafe path names
Attackers can manipulate release asset names to write files to unintended locations during repository dumps, potentially overwriting data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-28705?
CVE-2026-28705 is a medium-severity path traversal vulnerability in Gitea Open Source Git Server, published on 3 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Gitea versions before 1.25.5 use release tag names and asset names as filesystem path components when dumping release assets, allowing specially crafted names to affect dump output paths.
Weakness: CWE-22
Which versions are affected by CVE-2026-28705?
3 open source packages ship an affected version, including code.gitea.io/gitea.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.25.5 |
code.gitea.io/gitea Go | All versions | 1.25.5 |
code.gitea.io/gitea Go | All versions | 1.25.5 |
How do I fix CVE-2026-28705?
Upgrade code.gitea.io/gitea to 1.25.5 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-28705 being exploited?
There is no known exploitation of CVE-2026-28705 in the wild and no public exploit code.
Sources
Also known as GHSA-7jvx-g65v-r899, GO-2026-6337.