Pillow before 13.1.0 Crash via ImageMath INT32_MIN Division by -1
- CVE-2026-137940
- GHSA-fmhg-jj2c-g77v
- EUVD-2026-137246
Description
Pillow before 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.
Text from the CVE.org record.
Recommendation
python-pillow Pillow
- If you run a version before 13.1.0update to 13.1.0 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
python-pillow Pillow
Affected versions Fixed in before 13.1.0 13.1.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.