PyPI: brotli

CVE-2020-8927

Safety vulnerability ID: SFTY-20200915-78403

Safety legacy ID: pyup.io-42299

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. It is recommended to update Brotli library to 1.0.8 or later. If one cannot update, it is recommended to use the "streaming" API as opposed to the "one-shot" API, and impose chunk size limits.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Integer overflow in the bundled Brotli C library

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. It is recommended to update Brotli library to 1.0.8 or later. If one cannot update, it is recommended to use the "streaming" API as opposed to the "one-shot" API, and impose chunk size limits.

Affected Package

Affecting brotli package, versions<1.0.8

Also affects

---

How to Fix

Upgradebrotlito1.0.8or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

References

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more