CVE-2024-39930

published 4 Jul 2024 · updated 28 Aug 2024

The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code execution

10.0CriticalCVSS 9.9EPSS 8%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 8%. No fixed version is recorded.

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.

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-39930 severity on Zeptric[![CVE-2024-39930](https://zeptric.io/badge/cve/CVE-2024-39930.svg)](https://zeptric.io/cve/CVE-2024-39930)