Gogs: Path Traversal in organization name results in RCE through Git hooks
70Vexday Risk Score
Prioritize patching. It exploitation observed by VulnCheck and has a public proof of concept.
ssvc Actcvss 10epss 0.9%
from disclosure to weapon8 days
Published on NVDJun 24
1st PoC+8d
VulnCheck+2d
exploitation probability
0.9%top 43% of all CVEs
observed exploitation
yesVulnCheck
3 public exploit(s)
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Affected products
gogs · gogspublic PoCs found — 3
githubgithub.com/iqx6889/CVE-2026-52813-Gogs-RCE★ 1githubgithub.com/thecodeb0ss/CVE-2026-52813★ 0vulncheckvulncheck.com/xdb/6f7bf13732ebunverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.