CVE-2026-96641: python-pillow pillow Integer Overflow or Wraparound
Vulnerability summary
CVE-2026-96641 is a medium (CVSS 6.5) Integer Overflow or Wraparound vulnerability in python-pillow pillow.
Timeline
- 21-10-2026PublishedVulnerability first disclosed.
Description
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
No EPSS score has been published for this record yet.
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Python-pillow1 product
- pillow< 13.0.0
1 vendor · 1 product
References
4 links- github.com/python-pillow/Pillow/security/advisories/GHSA-4rm8-3hmm-39fgX Refsource CONFIRM
- github.com/python-pillow/Pillow/pull/10010X Refsource MISC
- github.com/python-pillow/Pillow/releases/tag/13.0.0X Refsource MISC