CVE-2024-39930 Gogs has an argument Injection in the built-in SSH server
CriticalCVSS 9.9
EPSS 7.7%
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
3 packages: 2 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gogs(Go) | <= 0.13.0; All versions | after 0.13.0 | Partially fixed |
| gogs | <= 0.13.0 | after 0.13.0 | Fixed |
| gogs.io/gogs(Go) | < 0.13.1; <= 0.13.0 | 0.13.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gogs(Go) | <= 0.13.0 | No fix listed |
| gogs.io/gogs(Go) | < 0.13.1 | 0.13.1 |
| gogs(Go) | All versions | No fix listed |
| gogs.io/gogs(Go) | <= 0.13.0 | No fix listed |
| gogs | <= 0.13.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com release-notes
- www.sonarsource.com third-party-advisory
- www.vicarius.io exploit third-party-advisory
- github.com vendor-advisory
- github.com vendor-advisory
- github.com