Skip to content
OpenAdvisories
Critical · 9.9 Public exploit CVE-2024-39930 EUVD-2024-3615GHSA-p69r-v3h4-rj4fGHSA-vm62-9jw3-c8w3GO-2024-2969

Gogs has an argument Injection in the built-in SSH server

Published Jul 4, 2024 · Updated Aug 28, 2024 · Assigned by mitre

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.

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gogs/gogs all versions — GO-2024-2969
Go gogs.io/gogs < 0.13.1 0.13.1 GHSA-vm62-9jw3-c8w3

Advisories 1

References