Vulnerability GHSA-h2v8-394m-p7vv

Low Risk
LOW RISK
CVSS Score: 3.7
Score Range: < 4.0
Low severity vulnerabilities (CVSS < 4.0). Hygiene issues that can accumulate but pose lower immediate risk.
12 days ago
October 27, 2026 at 04:08 PM UTC
Rustls: Brotli certificate decompression can allocate an attacker-controlled amount of memory up to 1 GiB before authentication.
<0.23.46, >=0.24.0-dev.1 <0.24.0-dev.2
<0.23.46, >=0.24.0-dev.1 <0.24.0-dev.2

Summary

Rustls: Brotli certificate decompression can allocate an attacker-controlled amount of memory up to 1 GiB before authentication.

Details

Summary

The built-in (but disabled by default) Brotli certificate decoder bounds the output buffer but accepts an input-selected history window. A header of five bytes can specify a 1 GiB window allocation. A peer can abort a process whose allocator cannot satisfy that request. A client must enable Brotli and connect to the peer; a server must enable Brotli and request a client certificate. Neither direction requires a trusted attacker certificate.

Details

rustls calls BrotliDecompress which enables Brotli's large-window extension. rustls applies a limit to certificates, but this applies to the decompressed result, and not to any internal allocations the process requires.

Impact

Client applications that enable the brotli feature will be vulnerable to malicious servers. Server applications that enable the brotli feature and enable client authentication will be vulnerable to malicious clients.

Potential for denial of service due to memory exhaustion from peers sending malicious Brotli-encoded certificates, for applications that enable Brotli decompression.

Acknowledgement

Thanks to OpenAI [email protected] for the disclosure.

Impacted packages

Timeline

Published
12 days ago
October 27, 2026 at 04:08 PM UTC
Fixed (0.24.0-dev.2)
25 days ago
October 14, 2026 at 05:59 AM UTC
Fixed (0.23.46)
25 days ago
October 14, 2026 at 09:54 AM UTC
Last Modified
12 hours ago
November 08, 2026 at 10:55 AM UTC