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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (7.74%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
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.
- CVSS 3.1
- 9.9 CRITICALCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS
- 7.74% probability · 94th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-88
- Affected
- gogs/gogs
- Source
- cve@mitre.org
References
- https://github.com/gogs/gogs/releasesRelease Notes
- https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/Third Party Advisory
- https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930Exploit, Third Party Advisory
- https://github.com/gogs/gogs/releasesRelease Notes
- https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/Third Party Advisory
- https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930Exploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.