CVE-2024-39930
published critical CVSS 3.1 · 9.9gogs vulnerability
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.9 / 10
- Severity
- critical
- Provider
- mitre · cna
- Vector string
- CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
| gogs | gogs | 0 through 0.13.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- n/a
- CWE-88 CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
3Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 44486ca8bfcc2c9e06b3f7a7b8ba98ceb359c5ea6dd0a857b7a024eff6cf4d09
- Ingested
- 23 Sep 2026, 08:25:18 UTC
- Source record
- Official CVE record