VDB
Sign up
HIGH8.7

GHSA-6vch-q96h-7gc3

etcd: `tlsListener.acceptLoop` spawns unbounded handshake goroutines with no deadline

Quick fix

GHSA-6vch-q96h-7gc3 — go.etcd.io/etcd/v3: upgrade to the fixed version with the command below.

go get go.etcd.io/etcd/v3@v3.7.1

Details

### Impact _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).

### Patches _Has the problem been patched? What versions should users upgrade to?_

This vulnerability is patched in the following versions:

- etcd 3.7.1 - etcd 3.6.14 - etcd 3.5.33

### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_

If upgrading is not immediately possible, then restrict network access. Limit which hosts can reach etcd's client (gRPC) port via firewall rules or network policy, reducing who can attempt exploitation.

### Reporter

VMware By Broadcom

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/go.etcd.io/etcd/v3
Introduced in: 3.7.0-alpha.0Fixed in: 3.7.1
Fixgo get go.etcd.io/etcd/v3@v3.7.1
Go/go.etcd.io/etcd/v3
Introduced in: 3.6.0Fixed in: 3.6.14
Fixgo get go.etcd.io/etcd/v3@v3.6.14
Go/go.etcd.io/etcd/v3
Introduced in: 0Fixed in: 3.5.33
Fixgo get go.etcd.io/etcd/v3@v3.5.33

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:golang/go.etcd.io/etcd/v3"]}'