Vulnerability advisory
CVE-2024-39930
Also known as GHSA-p69r-v3h4-rj4fGHSA-vm62-9jw3-c8w3GO-2024-2969
Severity
- CVSS 3.x
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits through 8c21874c00b6100d46b662f65baeb40647442f42 | No fix listed |
Also listed as affected (55)
| |
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.
References
- Webwww.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39930.json ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-39930 ↗
- Packagegithub.com/gogs/gogs/releases ↗
- ARTICLEwww.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/ ↗