CVE-2024-39930: gogs · Argument Injection
Affects gogsSource CVE Database V5
Public exploit available (Exploit-DB) · CVSS 9.9 Critical.
Data as of 26 Oct 2026, 12:29 UTC
- EPSS
- 7.7% chance of exploitation in 30 days – higher than 94% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:NExploitation evidence
t = 0 is the CVE’s publication on cve.org
Disclosed: evidence found.
CVE published 4 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: evidence found.
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
Timeline
CVE published
on cve.org
, t = 0
First Exploit-DB entry (opens in a new tab)
gogs 0.13.0 - Remote Code Execution (RCE)
, 363 days after disclosure
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubgogs/gogspkg:github/gogs/gogsOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-39930, organizations should immediately disable the built-in SSH server in Gogs if it is not essential, especially on non-Windows systems. If SSH access is required, consider restricting it to trusted networks and enforcing strong authentication mechanisms such as multi-factor authentication and key-based authentication with strict key management. Monitor SSH logs for unusual environment variable requests or connection attempts. Apply any forthcoming official patches or updates from the Gogs project as soon as they become available. In the interim, consider deploying network-level controls such as firewall rules to limit SSH access and use intrusion detection/prevention systems to detect suspicious SSH environment variable usage. Conduct a thorough audit of user accounts with SSH access and revoke unnecessary privileges. Additionally, implement robust monitoring and incident response plans to quickly identify and respond to potential exploitation attempts. Regular backups and system integrity checks will help in recovery if compromise occurs.
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.