pillow is vulnerable to Heap-based Buffer Overflow
92
CVE Score
Critical
Heap-based Buffer Overflow
FpxImagePlugin decodes a JPEG-compressed FlashPix tile as raw mode LA, which allocates two bytes per pixel, while an unrecognized JPEG mode is decoded as JCS_UNKNOWN and writes one byte per component. A four-component scanline therefore writes past the tile buffer. Opening a crafted OLE2 FlashPix file when olefile is installed can corrupt heap memory and run code. The fix rejects a scanline whose width or component count does not fit the allocated tile buffer before decoding it.
Upgrade the pillow library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you open untrusted images with the optional olefile dependency installed.
1.0 - 12.3.0
Fixed in 13.0.0pillow is vulnerable to Heap-based Buffer Overflow in versions 1.0 - 12.3.0.
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.