Integer overflow in Pillow - CVE-2026-96641
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to potentially cause a denial of service.
The vulnerability exists due to signed integer overflow in Pillow's native text-width calculation in src/_imaging.c when accumulating negative glyph advances without checking the lower integer bound. A remote attacker can induce a user to process a crafted PILfont bitmap font and text containing 65,537 repetitions of a glyph with an advance of -32768 to trigger undefined behavior, produce an incorrect width, and potentially cause a denial of service through subsequent resource consumption.