Skip to main content
CVE-2026-137940VulnerabilityPublished

Pillow through 13.1.0 contains an integer overflow in the ImageMath integer divide and modulo operators (DIV_I and

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-137940· Medium 5.7

Not known to be exploited · CVSS 5.7 Medium.

Data as of 27 Nov 2026, 16:43 UTC

CVSS 4.0 base score
5.7Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (AISLE)CVSS 4.05.7
CNA (AISLE)CVSS 3.14.7
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
PillowpillowAffected
  • <=13.1.0
Fixed in–
GitHubpillowpkg:github/pillowOther threatsAffected
  • <=13.1.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Until a fix is available, avoid processing untrusted TIFF images that may trigger this vulnerability or implement input validation to detect and block such crafted images.

Description

Pillow versions through 13.1.0 have an integer overflow vulnerability in the ImageMath integer divide and modulo operators (DIV_I and MOD_I). This flaw occurs because these operators only guard against a zero divisor, but dividing INT32_MIN by -1 triggers a hardware divide exception. An attacker can exploit this by supplying a crafted TIFF image that decodes to a mode I image containing INT32_MIN, causing applications performing such operations to crash.

References

Community reviews

Loading reviews…