{"id":"CVE-2026-137940","aliases":[],"title":"Pillow through 13.1.0 Crash via ImageMath INT32_MIN Division by -1","originalDescription":"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.","severity":{"cvss":5.7,"vector":"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","label":"medium"},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-rr9w-vmjp-9cg9","type":"other"},{"url":"https://github.com/python-pillow/Pillow","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-27T14:48:07.301Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137940","license":"NVD terms of use","firstSeenAt":"2026-11-27T14:48:07.301Z"},{"name":"cvelistV5","at":"2026-11-28T15:31:05.554Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-137940","license":"CVE Terms of Use","firstSeenAt":"2026-11-27T14:12:31.816Z"}],"firstSeenAt":"2026-11-27T14:12:31.816Z","publishedAt":"2026-11-27T13:43:54.744Z","modifiedAt":"2026-11-27T14:17:05.130Z"}