Junglewise Threat Intelligence

CVE-2026-52814: Gogs Denial of Service via SSH handshake stall in built-in SSH server

CVE-2026-52814 · Severity: medium · CVSS 4 · Published 2026-06-24

Technologies: gogs.io/gogs (Go), Gogs. Vendors: Go, Gogs.

Executive brief

Gogs is an open-source self-hosted Git service used by teams to manage source code. A vulnerability in its built-in SSH server allows an unauthenticated attacker to crash the service or make it unavailable by opening many connections and refusing to send data. This can lead to a total service outage, preventing developers from accessing their code and disrupting automated development workflows.

Technical details

The Gogs built-in SSH server fails to enforce read/write deadlines on underlying TCP connections before passing them to the Go SSH handshake handler. An unauthenticated attacker can initiate numerous TCP connections and withhold the SSH protocol banner, causing the server to spawn an unbounded number of goroutines that block indefinitely. This results in File Descriptor (FD) exhaustion and memory pressure, eventually preventing legitimate SSH access and causing secondary failures like log rotation errors. The vulnerability is rooted in the 'listen' function within 'internal/ssh/ssh.go'. It has been patched in version 0.14.3 by implementing a 15-second handshake timeout.

Affected products

  • Gogs Gogs < 0.14.3

Timeline

  • 2026-06-07: patched: Fix merged into main branch and version 0.14.3 released.
  • 2026-06-19: advisory: GitHub Security Advisory GHSA-xp79-5mx3-jx52 published.
  • 2026-06-24: disclosed: CVE-2026-52814 published to NVD.

References

Related threats