Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97031 Overview
CVE-2026-97031 is a memory exhaustion vulnerability in Go's Transport Layer Security (TLS) implementation of Encrypted Client Hello (ECH). A remote attacker can send a crafted ClientHello that specifies multiple ECH outer extension references, triggering uncontrolled memory consumption in the server process. RFC 9849 prohibits multiple outer extension references, but earlier versions of the Go TLS stack accepted them. The fix rejects such messages as malformed, eliminating the memory amplification vector. The weakness is tracked as [CWE-405: Asymmetric Resource Consumption (Amplification)].
Critical Impact
Unauthenticated network attackers can degrade or crash Go-based TLS servers that enable ECH, causing denial of service without any user interaction.
Affected Products
- Go standard library crypto/tls package with ECH support enabled
- Applications built on affected Go toolchain versions tracked by GO-2026-6607
- Network services using Go's TLS server implementation to terminate ECH connections
Discovery Timeline
- 2026-10-08 - CVE-2026-97031 published to NVD
- 2026-10-09 - Last updated in NVD database
Technical Details for CVE-2026-97031
Vulnerability Analysis
Encrypted Client Hello (ECH) protects the TLS ClientHello by wrapping sensitive extensions inside an encrypted inner handshake. To reduce payload size, ECH defines an outer_extensions mechanism that lets the inner ClientHello reference extensions already present in the outer ClientHello by type. RFC 9849 permits only a single outer_extensions reference per extension to prevent abuse.
In affected Go releases, the TLS server did not enforce this uniqueness constraint. A client could send a ClientHello that repeatedly references the same outer extensions, forcing the server to materialize and process duplicate extension data on each reference. The server-side memory footprint grows disproportionately to the attacker's input size, producing an amplification pattern consistent with [CWE-405].
Root Cause
The parsing path for ECH outer_extensions lacked validation that each referenced extension type appeared at most once. Without that check, duplicate references were accepted and expanded into the reconstructed inner ClientHello, allocating memory proportional to the number of references rather than the number of distinct extensions.
Attack Vector
Exploitation requires only network reachability to a Go TLS server that advertises ECH support. The attacker crafts a ClientHello containing an ECH extension whose encrypted inner payload lists the same outer extension type multiple times. No authentication, privileges, or user interaction are required. Sustained or parallel connections amplify memory pressure and can exhaust available resources on the server process. Technical details are available in the Go issue tracker entry and the Go.dev code change.
Detection Methods for CVE-2026-97031
Indicators of Compromise
- Sudden sustained growth in resident memory of Go-based TLS server processes without a corresponding increase in legitimate connection count
- TLS handshake failures or process restarts correlated with inbound ClientHello messages carrying ECH extensions
- Repeated malformed ClientHello alerts emitted by patched Go builds after upgrade
Detection Strategies
- Inspect TLS handshake logs for ECH extension usage from unexpected source networks and flag repeated connections from the same client identifiers
- Correlate out-of-memory (OOM) kills and container restarts with TLS endpoints that have ECH enabled
- Deploy network-layer rules that count ECH-bearing ClientHello messages per source IP and alert on anomalous rates
Monitoring Recommendations
- Track process-level memory and garbage collection metrics for Go TLS services and alert on rapid allocation spikes
- Enable verbose TLS error logging to capture malformed ClientHello rejections after patching
- Forward TLS and runtime telemetry to a centralized data lake for cross-service correlation and historical baselining
How to Mitigate CVE-2026-97031
Immediate Actions Required
- Upgrade to the Go toolchain versions listed in the Go vulnerability advisory GO-2026-6607 and rebuild all affected binaries
- Inventory services that enable ECH via Go's crypto/tls package and prioritize those exposed to untrusted networks
- Apply resource limits (memory ceilings, connection rate limits) to Go TLS workloads as a defense-in-depth control
Patch Information
The fix is implemented in the Go standard library and rejects ClientHello messages that contain multiple ECH outer extension references of the same type. Refer to the Go.dev code change and the golang-announce group post for the exact affected and fixed versions. Rebuild and redeploy any application that statically links the Go runtime.
Workarounds
- Disable ECH on Go TLS servers until patched builds are deployed, if the deployment supports toggling ECH
- Place a non-Go TLS terminator or reverse proxy in front of affected services to filter malformed ClientHello messages
- Enforce per-source connection rate limits and memory cgroup caps to blunt amplification during exploitation attempts
# Verify installed Go toolchain and rebuild affected services
go version
govulncheck ./...
# Rebuild and redeploy after upgrading to a fixed Go release
go build -trimpath -o service ./cmd/service
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

