Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft TIFF encoding INT32_MIN pixel
-
DeliveryDeliver image to target application
-
ExploitPillow decodes to mode I image
-
ExecutionImageMath runs DIV_I/MOD_I with -1
-
PersistHardware divide exception crashes process
-
ImpactDenial 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (AISLE).
CVSS VectorVendor: AISLE
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files. Rated
Denial of service in Python Pillow (versions 8.2.0 through 12.2.0) allows remote attackers to exhaust memory during JPEG
Heap buffer overflow in Pillow's libtiff-based TIFF encoder (all versions 2.3.0 through 12.3.0) lets attacker-controlled
Out-of-bounds memory disclosure in Python Pillow before 12.3.0 lets an attacker who supplies a crafted McIdas AREA image
Heap out-of-bounds write in Python Pillow prior to 12.3.0 lets an attacker who controls the rank-filter size parameter c
Denial-of-service and controlled heap corruption in Python's Pillow imaging library (all versions prior to 12.3.0) occur
Denial of service in Python Pillow 12.0.0 through 12.2.0 lets a remote attacker hang an application by supplying a craft
Denial of service (and potential memory corruption) in Python Pillow before 12.3.0 arises when public image coordinate A
Uncontrolled memory allocation in Python Pillow before 12.3.0 lets a crafted BDF font file exhaust available memory and
Uncontrolled memory consumption in Python Pillow (PIL) versions 5.1.0 through 12.2.x allows a remote attacker to cause d
Denial-of-service via memory exhaustion in Python Pillow before 12.3.0 allows a crafted GD-format (.gd) image to trigger
Uncontrolled memory allocation in Python Pillow before 12.3.0 allows a maliciously crafted font file to trigger excessiv
EUVD-2026-137246
GHSA-fmhg-jj2c-g77v
NVD
CVE.org
EPSS
VulDB
Exploit-DB