CVE-2026-137940
Pillow through 13.1.0 Crash via ImageMath INT32_MIN Division by -1
CVSS Score
4.7
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-190 |
| Vendor | python-pillow |
| Product | pillow |
| Published | Nov 27, 2026 |
Stay Ahead of the Next One
Get instant alerts for python-pillow pillow
Be the first to know when new medium vulnerabilities affecting python-pillow pillow are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Affected Versions
python-pillow / Pillow
0 โค 13.1.0
References
Credits
Joshua Rogers (AISLE Research)