Vulnerability advisory
CVE-2026-52813
Gogs: Path Traversal in organization name results in RCE through Git hooks
Also known as GHSA-c39w-43gm-34h5GO-2026-5305
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits before 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 | 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 |
| Not specified | f6acd467305943aae8403cbac81f0118dd1235d7 |
Also listed as affected (60)
| |
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.
References
- Webgithub.com/gogs/gogs/releases/tag/v0.14.3 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52813.json ↗
- Advisorygithub.com/gogs/gogs/security/advisories/GHSA-c39w-43gm-34h5 ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-52813 ↗
- Fixgithub.com/gogs/gogs/commit/f6acd467305943aae8403cbac81f0118dd1235d7 ↗
- Fixgithub.com/gogs/gogs/pull/8334 ↗