Path Traversal in Gogs
CVE-2024-54148
Gogs is an open source self-hosted Git service. A malicious user is able to commit and edit a crafted symlink file to a repository to gain SSH access to the server. The vulnerability is fixed in 0.13.1.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.009, 58.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Gogs — versions < 0.13.1
Weakness classification (CWE)
References
- https://github.com/gogs/gogs/security/advisories/GHSA-r7j8-5h9c-f6fx (Exploit, Vendor Advisory)
- https://github.com/gogs/gogs/issues/7582 (Issue Tracking)
- https://github.com/gogs/gogs/pull/7857 (Patch)
- https://github.com/gogs/gogs/commit/c94baec9ca923f38c19f0c7c5af722b9ec04022a (Patch)