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?
A public exploit is published in Exploit-DB and the impact is critical, while EPSS rates exploitation at 7.7%. Anyone can run this; patch or mitigate before the next change window and check exposed instances for signs of use.
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.68% probability · 95th percentile
- Public exploits
- 1 in Exploit-DB · first 2 July 2025
- CISA KEV
- Not listed
- Weakness
- CWE-88: Argument injection
- Affected
- gogs/gogs
- Source
- cve@mitre.org
In plain terms
It can be reached over a network, but only by someone who already has an account, so stolen or shared credentials are the usual way in.
- Reached from
- Over a network. If the affected system can be reached from the internet, so can the flaw.
- Effort
- Nothing outside the attacker's control has to line up, so an attack can be repeated reliably.
- Login needed
- An ordinary user account.
- Someone else involved
- No. Nobody has to click, open or approve anything.
- At risk
- Reading data: serious. Changing data: serious. Stopping the service: serious.
- Beyond the affected system
- Yes. The effect can reach systems other than the one that has the flaw.
Read from the CVSS 3.1 vector above. It describes the flaw itself, not how your own systems are set up.
The first public exploit in Exploit-DB is dated 2 July 2025, about 12 months after the record was published.
EPSS 7.7% since 4 December 2026; no change recorded yet. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
Public exploits (1)
Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.
The same product
This is the only record we hold for gogs/gogs. Follow this product to hear of the next one.
- CVE-2025-8110Gogs Path Traversal VulnerabilityKEVHIGH 8.7EPSS 92.3%Listed 12 January 2026
Where to go from here
One vulnerability is rarely the whole question. These are free, and none of them asks for an account.
By email
Our briefing by email: what changed, what to patch and what it means for a UK organisation. Written for the people who have to act on it.
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, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.