Patchfirst
CVE-2024-39930 Public exploit Critical · 9.9 EPSS 7.7%

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

Summary

The built-in SSH server in Gogs through 0.13.0 contains an argument injection flaw in internal/ssh/ssh.go. Remote code execution is possible by an authenticated attacker who connects over SSH and sends a malicious --split-string environment request, provided the built-in SSH server is enabled; Windows installations are not affected.

Official description · CVE.org

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.

Breakdown
75.9 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

Public exploit code (PoC-in-GitHub) appeared 12 months after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+12 mo

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

2 packages in 1 ecosystem. No single main package: each of these ships the affected code.

  • Gogogs.io/gogs
    Affected: All versions before 0.13.1Upgrade to 0.14.3 or later
  • Gogithub.com/gogs/gogs
    Affected: All versionsNo fixed version published

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close