# CVE-2026-52814: Gogs: Unauthenticated Asymmetric Denial of Service (DoS) via SSH Handshake Stall (File Descriptor Exhaustion)

- Severity: Medium 5.5 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T17:12:33.000Z
- Modified: 2026-07-21T13:45:25.128Z
- Also known as: GHSA-xp79-5mx3-jx52, GO-2026-5765
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.3
- gogs.io/gogs (Go): before 0.14.3; all versions

## Every score

- GitHub_M: CVSS:4.0 5.5 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-xp79-5mx3-jx52> (exploit, advisory, web)
- <https://github.com/gogs/gogs/pull/8335> (web)
- <https://github.com/gogs/gogs/commit/7da9cda314054501e1a7938a9c4d7896f331b884> (web)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52814> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-52814](https://www.cve.org/CVERecord?id=CVE-2026-52814), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-xp79-5mx3-jx52](https://github.com/advisories/GHSA-xp79-5mx3-jx52), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5765](https://pkg.go.dev/vuln/GO-2026-5765), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-52814](https://nvd.nist.gov/vuln/detail/CVE-2026-52814), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-52814 · Whole record: https://cve.day/CVE-2026-52814.json · Rebuilt by cve.day 2026-11-25T22:59:25.751Z
