Vulnerability in Gogs
CVE-2024-39930
The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code execution. Authenticated attackers can exploit this by opening an SSH connection and sending a malicious --split-string env request if the built-in SSH server is activated. Windows installations are unaffected.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.077 (94.4th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 94th percentile — 94.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.077 · newest: 0.077 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/gogs/gogs/releases (Release Notes)
- www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilitie… (Third Party Advisory)
- www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-3… (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2024-39930?
- CVE-2024-39930 is a critical-severity vulnerability in Gogs, classified under Argument Injection. CVSS score: 9.9/10. Published 2024-07-04.
- How severe is CVE-2024-39930?
- Critical severity. CVSS v3 base score is 9.9 out of 10.
- Is CVE-2024-39930 known to be exploited?
- 7 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.