All vulnerabilities

crates.io

CVE-2026-123610

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

Severity
Medium 6.3
Published
27 Oct 2026
Last changed
9 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.23.46, 0.24.0-dev.2
Exploit chance
0.2% in the next 30 daysHigher than 5% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Allocation without limits (CWE-770)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Slow it down
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Also known as
GHSA-h2v8-394m-p7vv, RUSTSEC-2026-0348
Sources
CVE Program, OSV.dev and GitHub

Description

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.

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.

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
rustlscrates.io · osv:crates.io:rustls
  • Every version before 0.23.46
  • From 0.24.0-dev.1 before 0.24.0-dev.2

About rustls

Downloads in the last 90 days (crates.io)
301,339,089crates.io, 24 Nov 2026
Total downloads (crates.io)
1,163,899,463crates.io, 24 Nov 2026

References