CVE-2024-39930
Last modified
CVE-2024-39930 is a critical-severity vulnerability rated 9.9/10 on the CVSS scale. 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. EPSS estimates a 7.26% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Gogs | Gogs | <= 0.13.0 |
References
- https://github.com/gogs/gogs/releasesRelease Notes
- 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.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-39930?
How severe is CVE-2024-39930?
How do I fix CVE-2024-39930?
Are you affected by CVE-2024-39930?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
