Vulnerability · Published Dec 23, 2024 · Assigned by GitHub_M
CVE-2024-55947Gogs has a Path Traversal in file update API
High 8.7
In plain English
A high-severity path traversal in gogs from gogs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 77.7% (higher than 99.6% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 4.0)8.7High
Exploit odds (30 days)77.7%top 0.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC
Official description
Gogs is an open source self-hosted Git service. A malicious user is able to write a file to an arbitrary path on the server to gain SSH access to the server. The vulnerability is fixed in 0.13.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.13.1 | GHSA-qf5v-rp47-55gg |
| Go | gogs.io/gogs | 0.13.1 | GO-2024-3356 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/gogs/gogs/security/advisories/GHSA-qf5v-rp47-55gg x_refsource_CONFIRM
- https://github.com/gogs/gogs/issues/7582 x_refsource_MISC
- https://github.com/gogs/gogs/pull/7859 x_refsource_MISC
- https://github.com/gogs/gogs/commit/9a9388ace25bd646f5098cb9193d983332c34e41 x_refsource_MISC