Vulnerability · Published Dec 23, 2024 · Assigned by GitHub_M
CVE-2024-54148Gogs has a Path Traversal in file editing UI
Critical 9.8
In plain English
A critical-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 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.9%top 41.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.13.1 | GHSA-r7j8-5h9c-f6fx |
| Go | gogs.io/gogs | 0.13.1 | GO-2024-3355 |
Affected products (as reported)
Weakness: CWE-61, CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/gogs/gogs/security/advisories/GHSA-r7j8-5h9c-f6fx x_refsource_CONFIRM
- https://github.com/gogs/gogs/issues/7582 x_refsource_MISC
- https://github.com/gogs/gogs/pull/7857 x_refsource_MISC
- https://github.com/gogs/gogs/commit/c94baec9ca923f38c19f0c7c5af722b9ec04022a x_refsource_MISC