CVE-2026-24135 Gogs vulnerable to arbitrary file deletion via path traversal in wiki page update
Authenticated users with wiki write access can delete arbitrary server files via path traversal in Gogs.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-24135?
CVE-2026-24135 is a high-severity path traversal vulnerability in gogs, published on 6 Feb 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, a path traversal vulnerability exists in the updateWikiPage function of Gogs. The vulnerability allows an authenticated user with write access to a repository's wiki to delete arbitrary files on the server by manipulating the old_title parameter in the wiki editing form. This issue has been patched in versions 0.13.4 and 0.14.0+dev.
Weakness: CWE-22
Which versions are affected by CVE-2026-24135?
3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gogs.io/gogs Go | All versions | None |
gogs.io/gogs Go | All versions | 0.13.4 |
gogs.io/gogs Go | All versions | 0.13.4 |
Products include Gogs Gogs.
How do I fix CVE-2026-24135?
Upgrade gogs.io/gogs to 0.13.4 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-24135 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24135 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in gogs
Sources
Also known as GHSA-jp7c-wj6q-3qf2, GO-2026-4452.