CVE-2026-97031: Reject malformed ECH outer extension references in crypto/tls
Exploitation: None known · CVSS 7.5 High · Unauthenticated · Published 2026-10-08
Description
Multiple ECH outer extension references are not permitted under RFC 9849; previously, a client could send a well-crafted packet that could trigger memory exhaustion in the server process by specifying multiple references. We now reject these as malformed and curb the memory amplification vector as a result.
Enclave's analysis
CVE-2026-97031 is a denial-of-service vulnerability in Go's crypto/tls standard library package. The decodeInnerClientHello function, which processes Encrypted Client Hello (ECH) inner ClientHello messages, contains multiple bugs: the cursor does not advance after copying an outer extension reference (allowing the same extension to be copied repeatedly), multiple ECH outer extension blocks are accepted (when only one is permitted per RFC 9849), and self-referencing extension types are not rejected. Together, these allow a remote unauthenticated attacker to send a small, crafted TLS ClientHello that triggers disproportionate memory allocation on the server, leading to memory exhaustion. Exploitation is limited to servers that have ECH keys configured in their TLS configuration, a feature added in Go 1.24.0 and not yet widely deployed.
Fix
No fixed version in the CVE record yet. Follow the vendor advisory.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| crypto/tls | 0 before 1.26.9 | Not listed |
| crypto/tls | 1.27.0-0 before 1.27.2 | Not listed |