CVE-2024-39930 EXPLOIT
9.9
CRITICAL · CVSS 3.1 · EPSS 7.7% (pctl 94)
Patch early
A public exploit exists.
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.
Scoring
| CVSS | 9.9 (CRITICAL, v3.1) |
|---|---|
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| EPSS | 7.74% — more likely to be exploited than 94% of all CVEs |
| Weakness | CWE-88 |
| On CISA KEV | no |
| Public exploit | yes |
| Published | 2024-07-04 |
| Last modified | 2026-06-17 |
Affected (1)
| Vendor | Product |
|---|---|
| gogs | gogs |
Public exploits
| Source | Title | Date |
|---|---|---|
| exploit-db | gogs 0.13.0 - Remote Code Execution (RCE) | 2025-07-02 |
References
- https://github.com/gogs/gogs/releases
- https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/
- https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930
- https://github.com/gogs/gogs/releases
- https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/
- https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930
→ the Explorer · watch your stack · NVD