CVE-2026-137940
5.7medium
Pillow before 13.1.0 Crash via ImageMath INT32_MIN Division by -1
- Severity
- 5.7medium CVSS:4.0 by AISLE
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- AISLE
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| pillow | before 13.1.0 | CVE List |
All scores
| AISLE | 5.7medium CVSS:4.0 | CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| AISLE | 4.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-137940 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-137940 changed 2026-12-01 | Public domain |