5.7

CVE-2026-137940: Pillow before 13.1.0 Crash via ImageMath INT32_MIN Division by -1

Awaiting analysis
AliasesDEBIAN-CVE-2026-137940UBUNTU-CVE-2026-137940
Published 27-11-2026Last modified 01-12-2026

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.

Priority
Routine

Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.7/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.17%
0%100%
Low · Change unavailable
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 27-11-2026
    PublishedVulnerability first disclosed.
  2. 01-12-2026
    Last 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

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

28-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

3 vendors · 4 products

References

5 links