Vulnerabilities · 2024 · Gogs
CVE-2024-39930
Gogs vulnerability
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.
Affected products
Gogs. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gogs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1 · Third Party Advisory
- www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930 · Exploit
- github.com/gogs/gogs/releases
- github.com/gogs/gogs/security/advisories/GHSA-vm62-9jw3-c8w3
- www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1
- github.com/advisories/GHSA-vm62-9jw3-c8w3
- nvd.nist.gov/vuln/detail/CVE-2024-39930
- cve.org/CVERecord?id=CVE-2024-39930
More vulnerabilities in Gogs products
CVE-2026-26276CVE-2026-26196CVE-2025-8110CVE-2024-56731CVE-2024-55947CVE-2024-54148CVE-2024-44625CVE-2024-39933All 35
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.