CVE-2026-137940: Pillow before 13.1.0 Crash via ImageMath INT32_MIN Division by -1
Vulnerability summary
CVE-2026-137940 is a medium (CVSS 5.7) Integer Overflow or Wraparound vulnerability in python-pillow pillow. EPSS estimates a 0.17% chance of exploitation in the next 30 days, higher than 6.8% of scored vulnerabilities.
Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 27-11-2026PublishedVulnerability first disclosed.
- 01-12-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 4 sources · 2 versions- NVDNIST5.7MediumCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · DebianEcosystem advisory · calculated5.7MediumCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated5.7MediumCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- NVDNIST4.7MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.17%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu2 products
- pillowAll versions (No fix recorded)
- pillow-python2All versions (No fix recorded)
Debian1 product
- pillowAll versions (No fix recorded)
Python-pillow1 product
- pillow< 13.1.0
3 vendors · 4 products