Skip to content

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

CriticalCVSS 9.9 EPSS 7.7% Public exploit
Published
Updated
Exploit status
Public exploit available
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

3 packages: 2 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
gogs(Go) <= 0.13.0; All versions after 0.13.0 Partially fixed
gogs <= 0.13.0 after 0.13.0 Fixed
gogs.io/gogs(Go) < 0.13.1; <= 0.13.0 0.13.1 Fixed

Affected products

ProductAffected versionsFixed in
gogs(Go) <= 0.13.0 No fix listed
gogs.io/gogs(Go) < 0.13.1 0.13.1
gogs(Go) All versions No fix listed
gogs.io/gogs(Go) <= 0.13.0 No fix listed
gogs <= 0.13.0 No fix listed

References