{"id":"CVE-2026-137940","aliases":["CVE-2026-137940"],"related":[],"kind":"vulnerability","state":"published","title":"Pillow before 13.1.0 Crash via ImageMath INT32_MIN Division by -1","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-27T13:43:54.744Z","modified":"2026-12-01T20:18:55.787Z","severity":{"scorer":"AISLE","scheme":"CVSS:4.0","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","score":5.7,"rating":"MEDIUM"},"severities":[{"scorer":"AISLE","scheme":"CVSS:4.0","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","score":5.7,"rating":"MEDIUM"},{"scorer":"AISLE","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"13.1.0","status":"affected"}],"vendor":"python-pillow","product":"Pillow","package":"pillow","repo":"https://github.com/python-pillow/Pillow","source":"cvelist"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-rr9w-vmjp-9cg9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/python-pillow/Pillow","tags":[],"sources":["cvelist","nvd"]}],"credits":["Joshua Rogers (AISLE Research)"],"assigner":"AISLE","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-30T15:48:41.755Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-137940","url":"https://www.cve.org/CVERecord?id=CVE-2026-137940","licence":"CVE Terms of Use","modified":"2026-12-01T19:38:21.156Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-137940","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137940","licence":"Public domain","modified":"2026-12-01T20:18:55.787Z"}],"updatedAt":"2026-12-01T20:32:47.849Z","epss":{"score":0.00172,"percentile":0.0693,"date":"2026-12-01T12:00:22.000Z"}}