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.
References
Configurations
No configuration.
History
30 Nov 2026, 17:18
| Type | Values Removed | Values Added |
|---|---|---|
| Summary | (en) 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. |
27 Nov 2026, 14:17
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-11-27 14:17
Updated : 2026-12-01 20:18
NVD link : CVE-2026-137940
Mitre link : CVE-2026-137940
CVE.ORG link : CVE-2026-137940
JSON object : View
Products Affected
No product.
CWE
CWE-190
Integer Overflow or Wraparound
