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.
The record classifies CVE-2024-39930 under weakness class CWE-88. Its CVSS v3 base vector states that the flaw is reachable remotely over the network, needs low-privilege credentials, needs no user interaction, and has high impact on confidentiality, integrity, availability. The identifier was first published 847 days ago.
Severity and exploitation probability
- CVSS v3.1 base score
- 9.9 — CRITICAL
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N - EPSS (FIRST)
- 7.7% probability of exploitation in the next 30 days, higher than 94.4% of all scored CVEs
- CISA KEV
- Not listed in the CISA Known Exploited Vulnerabilities catalog
- Threadlinqs priority
- 10/10 — a Threadlinqs composite of the CVSS base score, the EPSS percentile and public exploit availability
- Published
- 2024-07-04, last modified 2024-08-28
Is CVE-2024-39930 being exploited?
Weaponised exploit code for CVE-2024-39930 is publicly available. 4 public proof-of-concept repositories are tracked for this identifier. It currently carries a trending score of 37 in the Threadlinqs vulnerability feed.
- theMcSam/CVE-2024-39930-PoC (github)
- alexander47777/-CVE-2024-39930 (github)
- laachy/CVE-2024-39930-ptrace-detection-mitigation (github)
- trickest/cve (trickest)
Affected products and versions
Affected software packages:
go:gogs.io/gogs— patched in 0.13.1
How to fix CVE-2024-39930
Fixed versions are recorded for 1 package: go:gogs.io/gogs 0.13.1. No vendor patch reference has been recorded for CVE-2024-39930 in the tracked sources. Follow the references below for a fix, and treat any affected deployment as exposed until the vendor states otherwise.
Threat activity tracking CVE-2024-39930
1 tracked threat in the Threadlinqs corpus references CVE-2024-39930, either in the campaign’s CVE list or as an indicator on the campaign record.
Sources
Enriched from CVE.org, FIRST EPSS, GitHub Security Advisories, public proof-of-concept repositories. Last verified by Threadlinqs on .