CVE-2024-39930

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

Configuration 1 (hide)

cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*

History

11 Apr 2025, 15:14

Type Values Removed Values Added
First Time Gogs gogs
Gogs
CPE cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
References () https://github.com/gogs/gogs/releases - () https://github.com/gogs/gogs/releases - Release Notes
References () https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/ - () https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/ - Third Party Advisory
References () https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930 - () https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930 - Exploit, Third Party Advisory

Information

Published : 2024-07-04 16:15

Updated : 2025-04-11 15:14


NVD link : CVE-2024-39930

Mitre link : CVE-2024-39930

CVE.ORG link : CVE-2024-39930


JSON object : View

Products Affected

gogs

  • gogs
CWE
CWE-88

Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')