CVE-2024-39930

CRITICALCVSS 9.9/10EPSS 7.26%

Last modified

CVE-2024-39930 is a critical-severity vulnerability rated 9.9/10 on the CVSS scale. 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. EPSS estimates a 7.26% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.9/10

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

EPSS Probability
7.26%

93.6th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
GogsGogs<= 0.13.0

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is 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.
How severe is CVE-2024-39930?
CVE-2024-39930 has a CVSS score of 9.9/10 (CRITICAL severity). The EPSS model estimates a 7.26% probability of exploitation in the next 30 days.
How do I fix CVE-2024-39930?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-39930?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST