CVE-2026-137940
Pillow before 13.1.0 Crash via ImageMath INT32_MIN Division by -1
- Severity
- medium CVSS 5.7 (v4.0)
- Affects
- Pillow · python-pillow
- Weakness
- CWE-190: Integer Overflow or Wraparound
- Published
- 27 November 2026 by AISLE
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.