CVE-2024-54148
HIGH 8.7CVSS 4.0Remote Command Execution in file editing in gogs
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.
- Published
- 23 Dec 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-r7j8-5h9c-f6fxGO-2024-3355
- Sources
- NVDJSONOSV GHSA-r7j8-5h9c-f6fxJSONOSV GO-2024-3355JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gogs | gogscpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* |
< 0.13.1 | 0.13.1 |
| OSV | Go | gogs.io/gogs | < 0.13.1 | 0.13.1 |
References
- https://github.com/gogs/gogs/commit/c94baec9ca923f38c19f0c7c5af722b9ec04022a · Patch, WEB
- https://github.com/gogs/gogs/issues/7582 · Issue Tracking, WEB
- https://github.com/gogs/gogs/pull/7857 · Patch, WEB
- https://github.com/gogs/gogs/security/advisories/GHSA-r7j8-5h9c-f6fx · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-54148 · ADVISORY
- https://github.com/gogs/gogs · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 23 Dec 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jan 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Dec 2024)