Vulnerability · Published Jul 4, 2024 · Assigned by mitre

CVE-2024-39930

Critical 9.9

In plain English

A critical-severity argument injection in the github.com/gogs/gogs package (Go). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 7.7% (higher than 95% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.9Critical
Exploit odds (30 days)7.7%top 5.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/gogs/gogsno fix listedGHSA-p69r-v3h4-rj4f
Gogithub.com/gogs/gogsno fix listedGO-2024-2969
Gogogs.io/gogs0.13.1GHSA-vm62-9jw3-c8w3

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-88 · Vector: CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N

References