{"id":"RUSTSEC-2021-0131","revision":"a424802e8eae47fb99639059ce8b5f92","records":[{"revision":"a424802e8eae47fb99639059ce8b5f92","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2021-0131","aliases":["BIT-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-0132"],"title":"Integer overflow in the bundled Brotli C library","description":"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.\n\nAn updated version of `brotli-sys` has not been released. 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.\n\nIn Rust the issue can be mitigated by migrating to the `brotli` crate, which provides a Rust implementation of Brotli compression and decompression that is not affected by this issue.","state":0,"publishedAt":"2021-12-20T12:00:00+00:00","modifiedAt":"2025-09-04T18:27:28.943295+00:00","affected":[{"ecosystem":"crates.io","name":"brotli-sys","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/brotli-sys","https://rustsec.org/advisories/RUSTSEC-2021-0131.html","https://github.com/bitemyapp/brotli2-rs/issues/45","https://github.com/google/brotli/releases/tag/v1.0.9"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2021-0131","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2021-0131","identifiers":["RUSTSEC-2021-0131","BIT-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-0132"]},"retained":false,"historicalAffected":[]}],"coverage":[]}