CVE-2026-137940 Details
Description
Pillow before 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.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/python-pillow/Pillow | 1a4f025a-074d-4105-b4e2-52bd8eabe2ea | |
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-rr9w-vmjp-9cg9 | 1a4f025a-074d-4105-b4e2-52bd8eabe2ea |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | 1a4f025a-074d-4105-b4e2-52bd8eabe2ea |
Affected Products
No affected product data is available for this CVE.
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Dec 1, 2026 | CVE Modified | CISA-ADP |
| Nov 30, 2026 | CVE Modified | 1a4f025a-074d-4105-b4e2-52bd8eabe2ea |
| Nov 27, 2026 | New CVE Received | 1a4f025a-074d-4105-b4e2-52bd8eabe2ea |