cve.bz

CVE-2024-39930

9.9 criticalEPSS 7.7%

Critical (9.9) in gogs gogs. EPSS 7.7% chance of exploitation in the next 30 days. Fixed in gogs.io/gogs 0.13.1.

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.

Severity

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
EPSS
7.7% chance of exploitation in the next 30 days; higher than 94% of CVEs (scores of 2026-10-31)
CWE
CWE-88
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vm62-9jw3-c8w3Gogogs.io/gogs<0.13.10.13.1
GO-2024-2969Gogithub.com/gogs/gogsall versionsno fix published

References

Check your stackJSON