Vulnerability 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 Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Gogs | Gogs | <= 0.13.0 |
Related Weaknesses (CWE)
References
- https://github.com/gogs/gogs/releasesRelease Notes
- https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulneraThird Party Advisory
- https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cveExploitThird Party Advisory
- https://github.com/gogs/gogs/releasesRelease Notes
- https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulneraThird Party Advisory
- https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cveExploitThird Party Advisory
FAQ
What is CVE-2024-39930?
CVE-2024-39930 is a vulnerability with a CVSS score of 9.9 (CRITICAL). 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...
How severe is CVE-2024-39930?
CVE-2024-39930 has been rated CRITICAL with a CVSS base score of 9.9/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2024-39930?
Check the references section above for vendor advisories and patch information. Affected products include: Gogs Gogs.