GHSA-6vch-q96h-7gc3: etcd: `tlsListener.acceptLoop` spawns unbounded handshake goroutines with no deadline
What kind of vulnerability is it? Who is impacted?
A network attacker who can reach an etcd TLS listener can open many TCP connections and never send a ClientHello. Each connection spawns a goroutine in the etcd server process that blocks indefinitely inside tls.Conn.Handshake(), and each is tracked in the pending map. Unbounded goroutine and map growth exhausts memory in the etcd process, causing loss of availability for the etcd cluster (and, when etcd backs Kubernetes, the control plane).
References
- github.com/advisories/GHSA-6vch-q96h-7gc3
- github.com/etcd-io/etcd/commit/2e07efce9745004eb4773cffaada9b5cdf77cff2
- github.com/etcd-io/etcd/commit/f73cba7d920019f91a1ea1f6697833e42731f057
- github.com/etcd-io/etcd/pull/22130
- github.com/etcd-io/etcd/releases/tag/v3.5.33
- github.com/etcd-io/etcd/releases/tag/v3.6.14
- github.com/etcd-io/etcd/releases/tag/v3.7.1
- github.com/etcd-io/etcd/security/advisories/GHSA-6vch-q96h-7gc3
Code Behaviors & Features
Detect and mitigate GHSA-6vch-q96h-7gc3 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →