GHSA-fmhg-jj2c-g77vMediumCVSS 4.7

Pillow through 13.1.0 contains an integer overflow in the ImageMath integer divide and modulo...

Published
November 27, 2026
Last Modified
November 27, 2026

🔗 CVE IDs covered (1)

📋 Description

Pillow through 13.1.0 contains an integer overflow in the ImageMath integer divide and modulo operators (DIV_I and MOD_I in src/_imagingmath.c), which guard only against a zero divisor, so dividing INT32_MIN by -1 raises a hardware divide exception. Attackers can supply a crafted TIFF that decodes to a mode I image containing INT32_MIN, crashing applications that run an ImageMath divide or modulo with a -1 operand on it.

🔗 References (4)