Pillow through 13.1.0 contains an integer overflow in the ImageMath integer divide and modulo...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| python-pillowPillow |
< 13.1.0→ 13.1.0 |
13.1.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-137940 pillow No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-137940 pillow-python2, pillow No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com