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...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSpillow |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSpillow |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSpillow |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSpillow |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSpillow-python2 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSpillow |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSpillow |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10pillow |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSpillow |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
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: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report github.com