Home / python-pillow / Pillow / CVE-2026-137940
CVE-2026-137940: is it exploited, and which versions of python-pillow Pillow are affected and fixed?
CVE-2026-137940 is an integer overflow vulnerability in python-pillow Pillow. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: Pillow before 13.1.0 (CVE record by AISLE). Fixed in 13.1.0 (CVE record by AISLE). Severity: Medium (5.7, CVSS 4.0, from AISLE).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record December 1, 2026, 19:46 UTC and NVD December 1, 2026, 21:12 UTC.
What is CVE-2026-137940?
Pillow before 13.1.0 Crash via ImageMath INT32_MIN Division by -1
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.
From the CVE record by AISLE, last updated December 1, 2026, 19:38 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| python-pillow | Pillow pillow | before 13.1.0 | 13.1.0 |
As the CVE record by AISLE states it, last updated December 1, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-137940?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.7 | 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 |
| Medium 4.7 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H | AISLE |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-137940 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, November 30, 2026)
- EPSS
- 0.17% probability of exploitation activity in the next 30 days, percentile 6.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-190 Integer Overflow or Wraparound
Where are the vendor advisories and references?
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-rr9w-vmjp-9cg9
- https://github.com/python-pillow/Pillow
Who found and reported it?
- Joshua Rogers (AISLE Research) (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- November 27, 2026
- Published
- November 27, 2026, 13:43 UTC
- CVE record updated
- December 1, 2026, 19:38 UTC by AISLE
- NVD
- Awaiting Analysis, last modified December 1, 2026, 20:18 UTC
- Last checked
- CVE list December 1, 2026, 19:46 UTC; NVD December 1, 2026, 21:12 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Pillow?
- Nov 12, 2026CVE-2026-128067 python-pillow Pillow: out-of-bounds write (memory corruption)
- Nov 12, 2026CVE-2026-128066 python-pillow Pillow: denial of service (resources allocated without limits)
- Nov 5, 2026CVE-2026-112902 python-pillow Pillow: function Call With Incorrect Argument Type
- Nov 5, 2026CVE-2026-112899 python-pillow Pillow: denial of service (resources allocated without limits)
- Oct 21, 2026CVE-2026-114501 python-pillow Pillow: sensitive Information in Resource Not Removed Before Reuse
- Oct 21, 2026CVE-2026-96639 python-pillow Pillow: out-of-bounds read
- Oct 21, 2026CVE-2026-96636 python-pillow Pillow: denial of service (uncontrolled resource consumption)
- Oct 21, 2026CVE-2026-96640 python-pillow Pillow: denial of service (uncontrolled resource consumption)
Questions about CVE-2026-137940
Is CVE-2026-137940 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 0.17% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of python-pillow Pillow are affected by CVE-2026-137940?
Pillow before 13.1.0, per the CVE record by AISLE. The tables above give every range the sources list.
Which version fixes CVE-2026-137940?
13.1.0, per the CVE record by AISLE. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-137940?
Medium (5.7, CVSS 4.0, from AISLE). The severity table above shows each score with its source.
Where is the official record of CVE-2026-137940?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.