Path Traversal in Gogs
CVE-2026-52813
Gogs is an open source self-hosted Git service. Prior to 0.14.3, organization names containing path traversal sequences (../) are accepted by Gogs, and repositories under them are written to paths following these path traversals. This allows storing/retrieving data for repositories at arbitrary locations on the filesystem. By creating nested structure of Git repositories, one can overwrite the other's hooks configuration to result in Remote Code Execution (RCE). This vulnerability is fixed in 0.14.3.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.011, 66.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Gogs — versions < 0.14.3
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- iqx6889/CVE-2026-52813-Gogs-RCE (1 star, last pushed 2026-07-21): CVE-2026-52813 (Gogs Path Traversal → Git Hooks RCE) defensive writeup: root-cause & patch analysis, Sigma/SIEM detection rules, IOCs, non-intrusive version scanner. No weaponized PoC.
- thecodeb0ss/CVE-2026-52813 (last pushed 2026-07-02): Gogs has Path Traversal in organization name that results in RCE through Git hooks
References
This CVE has public exploit evidence. See the latest CVEs with public exploits.