# CVE-2024-39930: Gogs has an argument Injection in the built-in SSH server

- Severity: Critical 9.9 (CVSS:3.1, scored by mitre) `CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 7.68%, higher than 94% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-04T00:00:00.000Z
- Modified: 2026-06-17T07:43:03.143Z
- Also known as: GHSA-p69r-v3h4-rj4f, GHSA-vm62-9jw3-c8w3, GO-2024-2969
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gogs gogs: up to 0.13.0
- github.com/gogs/gogs (Go): up to 0.13.0; all versions
- gogs.io/gogs (Go): before 0.13.1

## Every score

- mitre: CVSS:3.1 9.9 Critical `CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930> (exploit, third-party-advisory, web)
- <https://github.com/gogs/gogs/releases> (release-notes, web)
- <https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39930> (advisory)
- <https://github.com/gogs/gogs> (package)
- <https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1> (web)
- <https://github.com/gogs/gogs/security/advisories/GHSA-vm62-9jw3-c8w3> (web)
- <https://github.com/advisories/GHSA-p69r-v3h4-rj4f> (advisory)

## Sources

- CVE List: [CVE-2024-39930](https://www.cve.org/CVERecord?id=CVE-2024-39930), CVE Terms of Use, modified 2024-08-28
- GitHub Advisory Database: [GHSA-p69r-v3h4-rj4f](https://github.com/advisories/GHSA-p69r-v3h4-rj4f), CC-BY-4.0, modified 2024-12-23
- GitHub Advisory Database: [GHSA-vm62-9jw3-c8w3](https://github.com/advisories/GHSA-vm62-9jw3-c8w3), CC-BY-4.0, modified 2024-12-23
- Go Vulnerability Database: [GO-2024-2969](https://pkg.go.dev/vuln/GO-2024-2969), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-39930](https://nvd.nist.gov/vuln/detail/CVE-2024-39930), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-39930 · Whole record: https://cve.day/CVE-2024-39930.json · Rebuilt by cve.day 2026-11-25T22:58:42.509Z
