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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39930.json",
"cna_assigner": "mitre"
}{
"cpe": "cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.13.0"
},
{
"last_affected": "0.13.0"
}
],
"source": [
"DESCRIPTION",
"CPE_RANGE"
]
}