What’s Vulnerable › Vulnerabilities

CVE-2026-42308: Pillow: Integer overflow when processing fonts

Description

Pillow is a Python imaging library. Prior to version 12.2.0, if a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the current position, it may lead to an integer overflow. This issue has been patched in version 12.2.0.

Affected products

How to fix

Upgrade to a fixed version: python-pillow Pillow 12.2.0; Pypi Pillow 12.2.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-42308 or the next vulnerability affects your stack