Medium severity · published Jun 24, 2026
CVE-2026-52814
Gogs: Unauthenticated Asymmetric Denial of Service (DoS) via SSH Handshake Stall (File Descriptor Exhaustion)
5.5
CVSS
0.5%
EPSS
No
On KEV
Description
Gogs is an open source self-hosted Git service. Prior to 0.14.3, the Gogs built-in Go SSH server is vulnerable to an unauthenticated, asymmetric Denial of Service (DoS) attack. The application accepts inbound TCP connections and passes them to golang.org/x/crypto/ssh.NewServerConn inside a new goroutine without enforcing any read/write deadlines on the underlying net.Conn. An unauthenticated attacker can open multiple TCP connections to the SSH port and simply withhold the SSH protocol banner. This forces the server to spawn an unbounded number of goroutines that block indefinitely waiting for socket I/O. This leads to complete File Descriptor (FD) exhaustion, preventing legitimate users from accessing the Git SSH service, and ultimately destabilizing the entire Gogs process (e.g., causing internal log rotation failures). This vulnerability is fixed in 0.14.3.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 46% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GO
gogs · gogs
< 0.14.3 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-52814
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-52814
github.com
https://github.com/gogs/gogs/commit/7da9cda314054501e1a7938a9c4d7896f331b884
github.com
https://github.com/gogs/gogs/pull/8335
github.com
https://github.com/gogs/gogs/releases/tag/v0.14.3
github.com
https://github.com/gogs/gogs/security/advisories/GHSA-xp79-5mx3-jx52
More from gogs
8.8
CVE-2025-8110
File overwrite in file update API in Gogs
10.0
CVE-2026-52813
Gogs: Path Traversal in organization name results in RCE through Git hooks
9.9
CVE-2026-52806
Gogs: RCE via git rebase --exec argument injection in pull request merge
9.9
CVE-2024-39932
Gogs through 0.13.0 allows argument injection during the previewing of changes
9.9
CVE-2024-39931
Gogs through 0.13.0 allows deletion of internal files
