Skip to main content

Pillow EUVDEUVD-2026-137246

| CVE-2026-137940 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-11-27 AISLE GHSA-fmhg-jj2c-g77v
5.7
CVSS 4.0 · Vendor: AISLE
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft TIFF encoding INT32_MIN pixel
  2. Delivery
    Deliver image to target application
  3. Exploit
    Pillow decodes to mode I image
  4. Execution
    ImageMath runs DIV_I/MOD_I with -1
  5. Persist
    Hardware divide exception crashes process
  6. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation is conditional, not default. All of the following must hold: (1) the application decodes an attacker-controlled TIFF into a mode I (32-bit integer) image; (2) a pixel in that image equals INT32_MIN (-2147483648); and (3) the application subsequently invokes Pillow's ImageMath with an integer divide (DIV_I) or modulo (MOD_I) operator using -1 as the operand on that image. If the application never calls ImageMath, or never divides/mods by -1, the flaw cannot trigger - this is the primary limiting factor and the reason for AC:H/AT:P in the rating. Exploitation also requires the victim to process the malicious file (UI:P / passive user interaction). There is no authentication requirement in the sense of the CVSS vector (PR:N), but the practical gate is the specific ImageMath code path, not credentials.

Impact

This is a genuine but low-urgency availability-only issue, not a top priority. The vendor-supplied CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H) scores 5.7 (Medium) and describes a crash-only impact - no confidentiality or integrity loss (VC:N/VI:N) and only an availability hit (VA:H) that is a single hardware divide exception terminating the process. Several signals converge on low real-world urgency: the vuln.today decision label is 'this_month' (not act_now/emergency), the access vector is local with high attack complexity (AC:H) and an explicit attack requirement (AT:P), and exploitation needs passive user interaction (UI:P). No EPSS score, no KEV listing, and no SSVC automatable/technical-impact fields were supplied, so widespread automated exploitation cannot be inferred - and absence of those signals is consistent with a DoS that must land on a very specific code path. The practical limiter is not the CVSS score but the precondition: the victim application must itself run an ImageMath DIV_I/MOD_I operation with a -1 operand against a mode I image that the attacker got to contain INT32_MIN. That makes it a conditional crash in a hugely popular library rather than a broadly exploitable flaw. Note: the official rating uses AV:L, yet a crafted TIFF could plausibly be delivered to a server-side image pipeline over the network - defenders whose apps accept remote uploads should treat the delivery vector as potentially remote even though the rated vector is local; verify against your own data flow.

Exploit ScenarioDerived

An application uses Pillow to decode user-supplied TIFF files into mode I images and then performs an ImageMath expression containing an integer divide or modulo with a -1 operand (for example normalizing or inverting pixel values). An attacker uploads a crafted TIFF that decodes to a pixel value of INT32_MIN; when the INT32_MIN / -1 (or % -1) operation executes, the CPU raises a divide exception and the process crashes, producing a denial of service. A security advisory reference (GHSA-rr9w-vmjp-9cg9) exists, but no working public exploit code is identified in the provided data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

Pillow through 13.1.0 can be crashed by a crafted TIFF that decodes to a mode I image containing INT32_MIN when an application later runs ImageMath's integer divide or modulo operator with -1 as the operand; the implementation checks only for a zero divisor, so the INT32_MIN / -1 case raises a hardware divide exception. This is an availability-only, conditional issue: the victim must process the malicious file and the application must invoke the specific ImageMath DIV_I or MOD_I path, the supplied vector is PR:N so no authentication is required, and no CISA KEV entry or public exploit identified at time of analysis. The CVSS 4.0 score is 5.7 and the current triage label is this_month.

RemediationAI

Upgrade Pillow beyond 13.1.0 to the vendor-fixed release identified in GHSA-rr9w-vmjp-9cg9 (https://github.com/python-pillow/Pillow/security/advisories/GHSA-rr9w-vmjp-9cg9); the available input does not state an exact fixed version, so confirm the patched version in that advisory. Until the update is applied, reduce exposure by preventing untrusted TIFFs from being decoded into mode I and by avoiding ImageMath DIV_I or MOD_I operations with -1 on untrusted images; validate for INT32_MIN and handle the divide or modulo edge case before evaluation. Those controls trade off TIFF mode I support and the affected ImageMath operations. No vendor workaround beyond updating is stated in the available data.

Affected VersionsENISA

Pillow 0 ≤13.1.0

Affected Packages

euvd pillow no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The issue sits in Pillow's C implementation of ImageMath integer operators, specifically DIV_I and MOD_I in src/_imagingmath.c. The code handles a zero divisor but does not handle the signed 32-bit overflow edge case INT32_MIN divided by -1, whose result cannot be represented in int32 and commonly traps as SIGFPE or a hardware divide exception. Pillow TIFF decoding can produce a mode I 32-bit integer image whose pixels include INT32_MIN, so an application that feeds such an image into ImageMath with -1 can be terminated. CWE-190 captures the integer-overflow class; the supplied CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P, A:H only) and the independent CVSS 3.1 assessment (AV:L/AC:H/PR:N/UI:R, A:H only) both limit impact to availability and reflect the required application-specific ImageMath path and crafted operand.

Know when Pillow gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (AISLE) PRIMARY 5.7 MEDIUM
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
vuln.today AI 4.7 MEDIUM

Crash-only impact gives A:H with C:N/I:N; AC:H because a precise INT32_MIN value plus a -1 operand code path is required, and UI:R because the victim app must process the file.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (AISLE).

CVSS VectorVendor: AISLE

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Pillow through 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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 96% exploitable
Prevalence
High
Pillow is the de-facto Python imaging library, pervasive in web and backend stacks
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Pillow

View all
CVE-2022-30595 CRITICAL POC
9.8 May 25

libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files. Rated

CVE-2026-59204 HIGH POC
8.7 Jul 14

Denial of service in Python Pillow (versions 8.2.0 through 12.2.0) allows remote attackers to exhaust memory during JPEG

CVE-2026-128067 HIGH POC
8.4 Nov 12

Heap buffer overflow in Pillow's libtiff-based TIFF encoder (all versions 2.3.0 through 12.3.0) lets attacker-controlled

CVE-2026-54058 HIGH POC
8.3 Jul 14

Out-of-bounds memory disclosure in Python Pillow before 12.3.0 lets an attacker who supplies a crafted McIdas AREA image

CVE-2026-59197 HIGH POC
8.2 Jul 14

Heap out-of-bounds write in Python Pillow prior to 12.3.0 lets an attacker who controls the rank-filter size parameter c

CVE-2026-59205 HIGH POC
7.5 Jul 14

Denial-of-service and controlled heap corruption in Python's Pillow imaging library (all versions prior to 12.3.0) occur

CVE-2026-59203 HIGH POC
7.5 Jul 14

Denial of service in Python Pillow 12.0.0 through 12.2.0 lets a remote attacker hang an application by supplying a craft

CVE-2026-59199 HIGH POC
7.5 Jul 14

Denial of service (and potential memory corruption) in Python Pillow before 12.3.0 arises when public image coordinate A

CVE-2026-55379 HIGH POC
7.5 Jul 06

Uncontrolled memory allocation in Python Pillow before 12.3.0 lets a crafted BDF font file exhaust available memory and

CVE-2026-59200 HIGH POC
7.5 Jul 14

Uncontrolled memory consumption in Python Pillow (PIL) versions 5.1.0 through 12.2.x allows a remote attacker to cause d

CVE-2026-55380 HIGH POC
7.5 Jul 06

Denial-of-service via memory exhaustion in Python Pillow before 12.3.0 allows a crafted GD-format (.gd) image to trigger

CVE-2026-54060 HIGH POC
7.5 Jul 06

Uncontrolled memory allocation in Python Pillow before 12.3.0 allows a maliciously crafted font file to trigger excessiv

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy