Advisory

GHSA-h2v8-394m-p7vv

Also known as: CVE-2026-123610, RUSTSEC-2026-0348

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]](mailto:[email protected]) for the disclosure.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2026-10-27 16:08 UTC
Modified
2026-11-08 10:55 UTC

Affected packages and fixes

rustls

crates.io · All systems

Affected

  • introduced 0, fixed 0.23.46 (semver)

Fixed versions

0.23.46

Fix

  • Fixed version 0.23.46
    cargo update -p rustls --precise 0.23.46

rustls

crates.io · All systems

Affected

  • introduced 0.24.0-dev.1, fixed 0.24.0-dev.2 (semver)

Fixed versions

0.24.0-dev.2

Fix

  • Fixed version 0.24.0-dev.2
    cargo update -p rustls --precise 0.24.0-dev.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences