CVE-2024-39930

Published Jul 4, 2024 CVSS 3.1 · 9.9 Critical EPSS 7.7% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-3615 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.
Github GHSA Github GHSA GHSA-vm62-9jw3-c8w3 Gogs has an argument Injection in the built-in SSH server
History
Type Values Removed Values Added
First Time appeared Gogs
Gogs gogs
CPEs cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
Vendors & Products Gogs
Gogs gogs
Type Values Removed Values Added
Weaknesses CWE-88
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 28, 2024, 3:22 PM
Reserved
Jul 4, 2024, 12:00 AM
Status
Analyzed
Published
Jul 4, 2024, 4:15 PM
Modified
Jun 17, 2026, 7:43 AM