Email me

Rust advisories / rustls

Vulnerability LowRUSTSEC-2026-0348 · rustls

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

Short answerA security vulnerability in the rustls crate: Brotli certificate decompression can allocate up to 1 GiB before authentication. Low severity (CVSS 3.7). Fixed in 0.23.46: update to a fixed version.

Craterustls
TypeVulnerability (denial-of-service)
Affected versionsFrom 0.23.9 before 0.23.46.
Fixed in0.23.46
SeverityLow, CVSS 3.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Published2026-10-14
Last changed2026-10-14
Also known asGHSA-h2v8-394m-p7vv

What to do

  1. See which version you have: cargo tree -i rustls (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p rustls. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example rustls = "0.23.46") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for rustls

Full security history of rustls

Up next

Same craterustls: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ