Description
rustls before 0.23.46 contains an uncontrolled memory allocation flaw in its optional Brotli certificate decompression, which limits decompressed output size but accepts an input-selected large history window. Malicious peers can send a certificate with a five-byte Brotli header requesting up to 1 GiB before authentication, aborting Brotli-enabled clients or client-authenticating servers whose allocator cannot satisfy the request.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| rustls | rustls | < 0.23.46 | 0.23.46 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-rustls | No fix yet | — |
| Debian 13 | rust-rustls | No fix yet | — |
| Debian 12 | rust-rustls | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rust-rustls | No fix yet | — |
| Ubuntu 26.04 LTS | rust-rustls | No fix yet | — |
| Ubuntu 24.04 LTS | rust-rustls | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | rust +3 | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | rustls | < 0.23.46 | 0.23.46 | GHSA-h2v8-394m-p7vv |
| crates.io | rustls | >= 0.24.0-dev.1, < 0.24.0-dev.2 | 0.24.0-dev.2 | GHSA-h2v8-394m-p7vv |
| crates.io | rustls | >= 0.23.9, < 0.23.46 | 0.23.46 | RUSTSEC-2026-0348 |
References
- GitHub Security Advisory (GHSA-h2v8-394m-p7vv) vendor-advisory
- VulnCheck Advisory: rustls before 0.23.46 Denial of Service via Brotli Certificate Decompression third-party-advisory