VDB
Sign up
MEDIUM5.5

PYSEC-2026-165

Quick fix

PYSEC-2026-165 — pillow: upgrade to the fixed version with the command below.

pip install --upgrade 'pillow>=12.2.0'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pillow
Introduced in: 0Fixed in: 12.2.0
Fixpip install --upgrade 'pillow>=12.2.0'

References