Skip to main content
VulnerabilityPublished

CVE-2026-137940: Pillow · Integer Overflow or Wraparound

Affects PillowSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.7 Medium.

Data as of 27 Nov 2026, 14:02 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, users should avoid processing untrusted TIFF images that could trigger this condition or implement input validation to prevent images containing INT32_MIN values in mode I from being processed with divide or modulo operations.

Description

Pillow versions up to 13.1.0 contain an integer overflow vulnerability in the ImageMath integer divide and modulo operators. This flaw occurs because the operators only guard against a zero divisor, allowing a division of INT32_MIN by -1 to raise 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 that perform such operations to crash.

References

Community reviews

Loading reviews…