pillow-heif is vulnerable to Out-of-bounds Read
44
Medium Risk
The C encoder in _pillow_heif.c checks a plane buffer against stride_in * height, but _CtxWriteImage_add_plane copies real_stride bytes per row. When encode() is called with a stride smaller than the actual row width, the copy reads past the end of the buffer, crashing the process and copying adjacent heap memory into the output image. The fix rejects non-positive dimensions and any stride_in smaller than real_stride before copying.
You are affected if you are using a version that falls within the vulnerable range and you pass raw plane data with a caller controlled stride to the encoder.
pillow-heif is vulnerable to Out-of-bounds Read in versions 0.0.1 - 1.6.0.
Upgrade the pillow-heif library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

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.