brotlicffi is vulnerable to Out-of-bounds Write
95
CVE Score
Critical
Out-of-bounds Write
Affected versions of this package are vulnerable to Out-of-bounds Write in the bundled Google Brotli decoder (c/dec/decode.c). DecodeBlockTypeAndLength() returns an ambiguous value for an invalid block switch and the fast decode path discards it (unchecked return value), so a crafted Brotli stream makes the decoder continue on corrupted state and write past the ring buffer. A remote unauthenticated attacker can corrupt adjacent decoder state memory, disclose memory contents, cause a denial of service, or potentially achieve remote code execution. The fix checks the return value and aborts decoding on invalid block switches.
Upgrade the brotlicffi library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and decompress untrusted Brotli data, for example Brotli-encoded HTTP responses decoded by urllib3/requests, httpx or aiohttp, or Content-Encoding: br request bodies accepted by your service.
1.0.3 - 1.2.0.2
Fixed in 1.2.1.0brotlicffi is vulnerable to Out-of-bounds Write in versions 1.0.3 - 1.2.0.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.