Gogs
Gogs vulnerable to arbitrary file deletion via path traversal in wiki page update
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.14.0+dev
- < 0.13.4
Fixed in 0.14.0+dev, 0.13.4
Mitigation
Upgrade gogs to 0.14.0+dev or 0.13.4 or later.
References
- Vendor advisory github.com/gogs/gogs/security/advisories/GHSA-…
Timeline
Days relative to CVE publicationFirst public PoC 2 h before publication; not in CISA KEV. First PoC: reschjonas/CVE-2026-24135 (created 6 Feb 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| reschjonas/CVE-2026-24135 | 6 Feb 2026 −2 h | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /{var}/{var}/wiki/{var}
- Query
action=_edit- Key headers
Cookie: i_like_gogs={var}- Body markers
old_title=../../../../../../../tmp/target_filetitle=TestPagecontent=testmessage=testinapplication/x-www-form-urlencoded- Ports
- 443
- Seen in
- 1 repo: reschjonas/CVE-2026-24135
- Evidence
- reschjonas/CVE-2026-24135/Readme.md:79-84
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/[^/?#]*/[^/?#]*/wiki/[^/?#]*\?(?:.*&)?action=_edit
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [443] (msg:"GG PoC-Monitor CVE-2026-24135 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/wiki/"; http.uri; content:"action=_edit"; http.header; content:"Cookie: i_like_gogs="; nocase; http.request_body; content:"old_title=../../../../../../../tmp/target_file"; http.request_body; content:"title=TestPage"; http.request_body; content:"content=test"; http.request_body; content:"message=test"; reference:url,poc.griffinguard.io/cve/CVE-2026-24135; classtype:web-application-attack; sid:9768149; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: gogs gogs exploit attempt (CVE-2026-24135)
id: gg-pocmon-cve-2026-24135-9768149
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-24135. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-24135
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/wiki/'
cs-uri-query|contains|all:
- 'action=_edit'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.24135