RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authentication #16

Open
opened 2026-10-15 00:08:54 +00:00 by gitea-actions · 0 comments

Brotli certificate decompression can allocate up to 1 GiB before authentication

Details
Package rustls
Version 0.23.45
URL https://github.com/rustls/rustls/pull/3297
Date 2026-10-14
Patched versions >=0.23.46
Unaffected versions <0.23.9

The built-in Brotli certificate decompressor (enabled by the non-default
brotli crate feature) bounded the size of the decompressed output, but
accepted a peer-selected history window. Brotli's large-window extension was
enabled, so a five-byte header could cause an allocation of 1 GiB. A peer can
abort a process whose allocator cannot satisfy that request.

No trusted certificate is required by the attacker. Affected configurations are:

  • clients that enable the brotli feature and connect to a malicious server, and
  • servers that enable the brotli feature and request client certificates.

Applications that do not enable the brotli feature are not affected.

See advisory page for additional details.

> Brotli certificate decompression can allocate up to 1 GiB before authentication | Details | | | ------------------- | ---------------------------------------------- | | Package | `rustls` | | Version | `0.23.45` | | URL | [https://github.com/rustls/rustls/pull/3297](https://github.com/rustls/rustls/pull/3297) | | Date | 2026-10-14 | | Patched versions | `>=0.23.46` | | Unaffected versions | `<0.23.9` | The built-in Brotli certificate decompressor (enabled by the non-default `brotli` crate feature) bounded the size of the decompressed output, but accepted a peer-selected history window. Brotli&#39;s large-window extension was enabled, so a five-byte header could cause an allocation of 1 GiB. A peer can abort a process whose allocator cannot satisfy that request. No trusted certificate is required by the attacker. Affected configurations are: - clients that enable the `brotli` feature and connect to a malicious server, and - servers that enable the `brotli` feature and request client certificates. Applications that do not enable the `brotli` feature are not affected. See [advisory page](https://rustsec.org/advisories/RUSTSEC-2026-0348.html) for additional details.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Dreaded_X/automation_rs#16