CVE-2026-52813 Gogs: Path Traversal in organization name results in RCE through Git hooks
CriticalCVSS 10.0
EPSS 1.1%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
Description
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.
Upgrade path
2 packages: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gogs.io/gogs(Go) | < 0.14.3; All versions | 0.14.3 | Partially fixed |
| gogs | = < 0.14.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gogs | = < 0.14.3 | No fix listed |
| gogs.io/gogs(Go) | < 0.14.3 | 0.14.3 |
| gogs.io/gogs(Go) | All versions | No fix listed |
References
- https://github.com/gogs/gogs/security/advisories/GHSA-c39w-43gm-34h5 exploit vendor-advisory
- https://github.com/gogs/gogs/pull/8334 patch
- https://github.com/gogs/gogs/commit/f6acd467305943aae8403cbac81f0118dd1235d7 patch
- https://github.com/gogs/gogs/releases/tag/v0.14.3
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com