Email me

Rust advisories / compu-brotli-sys

Vulnerability MediumRUSTSEC-2021-0132 · compu-brotli-sys

RUSTSEC-2021-0132: Integer overflow in the bundled Brotli C library

Short answerA security vulnerability in the compu-brotli-sys crate: Integer overflow in the bundled Brotli C library. GitHub rates it Medium. Fixed in 1.0.9: update to a fixed version.

Cratecompu-brotli-sys
TypeVulnerability (memory-corruption)
Affected versionsBefore 1.0.9.
Fixed in1.0.9
SeverityMedium (GitHub rating)
Published2021-12-20
Last changed2025-10-28
Also known asBIT-brotli-2020-8927, BIT-dotnet-2020-8927, BIT-dotnet-sdk-2020-8927, BIT-powershell-2020-8927, CVE-2020-36846, CVE-2020-8927, GHSA-5v8v-66v8-mwm7, GO-2025-3726, PYSEC-2020-29, RUSTSEC-2021-0131

What to do

  1. See which version you have: cargo tree -i compu-brotli-sys (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p compu-brotli-sys. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example compu-brotli-sys = "1.0.9") 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

A buffer overflow exists in the Brotli library versions prior to 1.0.8 where an attacker controlling the input length of a "one-shot" decompression request to a script can trigger a crash, which happens when copying over chunks of data larger than 2 GiB.

If one cannot update the C library, its authors recommend to use the "streaming" API as opposed to the "one-shot" API, and impose chunk size limits.

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.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.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