CVE-2024-39930 json
Duplicate Advisory: github.com/gogs/gogs affected by CVE-2024-39930
published 2024-07-04 2 y ago modified 2026-06-17 4 mo ago also GHSA-p69r-v3h4-rj4f , GHSA-vm62-9jw3-c8w3 , GO-2024-2969 , EUVD-2024-3615
- cvss
- 9.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.7%
- EPSS 7.7% chance of exploitation in 30 days, percentile 94%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- go gogs.io/gogs 0.13.1
Timeline
- Published
- First public exploit (EDB-52348)
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
7.74% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-52348 gogs 0.13.0 - Remote Code Execution (RCE) remote, 2025-07-02
- vicarius.io https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.9 | CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N |
| CNA | 3.1 | 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 9.9 | CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gogs.io/gogs | <0.13.1 |
0.13.1 |
| go | github.com/gogs/gogs | all versions |
no fix listed |
Affected products
- gogs gogs
Classification
- Weakness
-
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
References
-
vicarius.io
/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930
web, exploit, third-party-advisory
-
github.com
/gogs/gogs/releases
web, release-notes
-
sonarsource.com
/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-39930
advisory
-
github.com
/gogs/gogs
package
-
sonarsource.com
/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1
web
-
github.com
/gogs/gogs/security/advisories/GHSA-vm62-9jw3-c8w3
web
-
github.com
/advisories/GHSA-p69r-v3h4-rj4f
advisory
Sources
- CVE List CVE-2024-39930
- GitHub Advisory GHSA-p69r-v3h4-rj4f
- GitHub Advisory GHSA-vm62-9jw3-c8w3
- NVD CVE-2024-39930
- OSV GO-2024-2969
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.