CVE-2024-39930: The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to re
CVE-2024-39930 is a critical-severity flaw (CVSS 9.9) affecting gogs. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 5%: very likely to be exploited
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.9 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 7.7% (top 5%) |
| CISA exploited list | No |
| Weakness | CWE-88 |
| Published | 2024-07-04 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Exploit-DB: gogs 0.13.0 - Remote Code Execution (RCE)
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-39930?
gogs: upgrade to newer than 0.13.0. Exact commands for each OS are on this page.
Is CVE-2024-39930 being exploited?
CVE-2024-39930 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-39930 affect?
CVE-2024-39930 affects gogs. Severity is critical (CVSS 9.9). 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
How urgent is CVE-2024-39930?
Priority 63/100. Critical severity; EPSS top 5%: very likely to be exploited; Public exploit reference
Software pages
Related CVEs
- CVE-2025-8110 HIGH 8.8 EXPLOITED UPGRADE Gogs Path Traversal Vulnerability
- CVE-2026-26276 HIGH 7.3 UPGRADE Gogs is an open source self-hosted Git service
- CVE-2026-26196 MEDIUM 5.3 UPGRADE Gogs is an open source self-hosted Git service
- CVE-2026-26195 MEDIUM 6.1 UPGRADE Gogs is an open source self-hosted Git service
- CVE-2026-26194 HIGH 7.3 UPGRADE Gogs is an open source self-hosted Git service