Skip to main content
← All vulnerabilities
CVE-2024-39930GO-2024-2969GHSA-P69R-V3H4-RJ4FGHSA-VM62-9JW3-C8W3

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.13.1
1 on Exploit-DB, 3 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated
  4. Public exploit on Exploit-DB

    EDB-52348

Affected versions

  • n/a n/a

    Version range not reported

  • github.com/gogs/gogsGo

    All versions

  • gogs.io/gogsGo

    fixed in 0.13.1

References 7

GitHub · gogs/gogs

sonarsource.com

vicarius.io

Exploit-DB

GitHub · alexander47777/-CVE-2024-39930

GitHub · laachy/CVE-2024-39930-ptrace-detection-mitigation

GitHub · theMcSam/CVE-2024-39930-PoC