# CVE-2026-52813: Gogs: Path Traversal in organization name results in RCE through Git hooks

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.50%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T17:10:50.000Z
- Modified: 2026-07-21T13:45:26.578Z
- Also known as: GHSA-c39w-43gm-34h5, GO-2026-5305
- Weaknesses: CWE-23
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.3
- gogs.io/gogs (Go): before 0.14.3; all versions

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-c39w-43gm-34h5> (exploit, advisory, web)
- <https://github.com/gogs/gogs/pull/8334> (web)
- <https://github.com/gogs/gogs/commit/f6acd467305943aae8403cbac81f0118dd1235d7> (web)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52813> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-52813](https://www.cve.org/CVERecord?id=CVE-2026-52813), CVE Terms of Use, modified 2026-06-26
- GitHub Advisory Database: [GHSA-c39w-43gm-34h5](https://github.com/advisories/GHSA-c39w-43gm-34h5), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5305](https://pkg.go.dev/vuln/GO-2026-5305), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-52813](https://nvd.nist.gov/vuln/detail/CVE-2026-52813), Public domain, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-52813 · Whole record: https://cve.day/CVE-2026-52813.json · Rebuilt by cve.day 2026-11-25T22:59:25.751Z
