CVE Professor
/
All CVEs
CVE-2026-137940

CVE-2026-137940 — Python-pillow Pillow (13.1.0) — CWE-190

MEDIUM CVSS 5.7 ⚡ EPSS 0.2% NVD

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.

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
Attack Vector Local AV:L
Attack Complexity High AC:H
Privileges Req. None PR:N
User Interaction Required UI:R
Scope Unchanged S:U
Confidentiality None C:N
Integrity None I:N
Availability High A:H
EPSS — Exploit Prediction Scoring System
0.2%
30-day probability
In the 4. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-137940
CVSS 5.7/10 · MEDIUM · 27.11.2026
CWE: CWE-190
Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: 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 modu…
Affected: python-pillow Pillow

⚡ ATTACK VECTOR
Local/physical access (AV:L) · no authentication required (PR:N) · user interaction required (UI:R).

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for python-pillow Pillow.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📋 Routine update cycle (30 days)

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="python-pillow Pillow"
CVSS Score
5.7 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-190
Affected Products (1)
python-pillow:Pillow (13.1.0)
References & Advisories (2)
Related CVEs
8.5
CVE-2026-144446
bitproto before 1.3.3 contains a code injection vulnerability that allows attackers to inject code into genera
8.5
CVE-2026-144576
PDM through 2.29.8 contains a code execution vulnerability that allows malicious repositories to run scripts b
9.9
CVE-2026-115555
IBM Langflow OSS 1.0.0 through 1.13.0 could allow a remote authenticated attacker to execute arbitrary code du
9.1
CVE-2026-144304
Certifi versions before 2026.10.18 include the `emSign ECC Root CA - G3` root certificate in their bundled CA
7.6
CVE-2026-144603
PostGIS before 3.7.0 contains an integer overflow vulnerability in rt_raster_generate_new_band that allows aut
4.7
CVE-2026-145361
libid3tag through 0.16.4 contains an integer overflow vulnerability in id3_parse_latin1() in src/parse.c that
7.5
CVE-2026-88254
Memory Corruption when processing an H.264 video stream due to an integer overflow.