{"id":"CVE-2026-96641","published":"2026-10-21T20:51:24Z","modified":"2026-10-28T01:50:42Z","title":"Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic…","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"Pillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C integer overflow in xsize += dx, producing a large positive width from a negative mathematical result. Applications that use getlength(), getsize(), or derived layout, quota, serialization, or allocation calculations can experience logic-integrity errors or resource consumption, while the high-level mask path commonly retains a decompression-bomb check. This issue is fixed in version 13.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00364,"percentile":0.31075,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rm8-3hmm-39fg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/10010","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/80de4be9e38d3a6148dd4d8491eb80cd12b760a4","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":6.22},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":["< 13.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-28T01:50:02.182605Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<13.0.0"],"patched":["13.0.0"],"from":["GHSA-4rm8-3hmm-39fg","PYSEC-2026-4340"],"provenance":"source"}],"summary":{"text":"The flaw is an integer overflow in the text-width accumulation of PILfont in Pillow's native C code (src/_imaging.c), where negative glyph advances are not range-checked against INT_MIN, so repeated large negative advances can wrap into a large positive width. An attacker who can get a victim application to process a crafted font and measure or lay out text can cause incorrect width calculations, which may lead to logic errors or resource consumption, and the attack requires the user or application to interact with the malicious input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:44Z"},"euvd":{"id":"EUVD-2026-107562","exploited":false,"provenance":"source"}}