CVE-2024-39930: Vulnerability in Gogs
Critical. When the built-in SSH server is enabled ([server] START_SSH_SERVER = true), unprivileged user accounts with at least one SSH key can execute arbitrary commands on the Gogs instance with the privileges of the user specified by RUN_USER in the configuration. It allows attackers to access and alter any users' code hosted on the same instance.
Go, CWE-88
- Exploitation
- None confirmed
- Severity
- 9.9 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-vm62-9jw3-c8w3
- Vector
- CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N
- Weakness
- CWE-88
- Published
- 4 Jul 2024
- Last change
- 17 Jun 2026
- Ecosystem
- Go
Affected products
Affected versions and the first fixed release
- Gogs Through 0.13.0. No fixed version recorded
Affected packages
Vulnerable version ranges and fixed releases
- gogs.io/gogs Go, Affected through 0.13.0. Fixed in 0.13.1
Advisories
Vendor and security advisories
- github.com/gogs/gogs/releases
- sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/
- vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930
- github.com/gogs/gogs/security/advisories/GHSA-vm62-9jw3-c8w3
- sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1
Related
- Gogs vulnerabilities Recent advisories, watch this product