Skip to content
OpenAdvisories
Medium · 5.1 CVE-2026-42308 BIT-pillow-2026-42308EUVD-2026-28900GHSA-wjx4-4jcj-g98jPYSEC-2026-165

Pillow: Integer overflow when processing fonts

Published May 9, 2026 · Updated May 11, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
python-pillow Pillow < 12.2.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pillow 12.2.0-1 —
Debian 13 pillow 11.1.0-5+deb13u3 —
Debian 12 pillow No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pillow 12.3.0-1ubuntu2 USN-9064-1
Ubuntu 26.04 LTS pillow 12.1.1-2ubuntu1.2 USN-9064-1, USN-8399-1
Ubuntu 25.10 pillow 11.3.0-1ubuntu1.3 USN-8399-1
Ubuntu 24.04 LTS pillow 10.2.0-1ubuntu1.2 USN-9064-1, USN-8399-1
Ubuntu 22.04 LTS pillow 9.0.1-1ubuntu0.4 USN-9064-1, USN-8399-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS pillow 7.0.0-4ubuntu0.9+esm2 USN-9064-1
Ubuntu Pro 20.04 LTS pillow-python2 No fix yet —
Ubuntu Pro 18.04 LTS pillow 5.1.0-1ubuntu0.8+esm3 USN-9064-1
Ubuntu Pro 16.04 LTS pillow 3.1.2-0ubuntu1.6+esm4 USN-9064-1
Ubuntu Pro 14.04 LTS pillow 2.3.0-1ubuntu3.4+esm6 USN-9064-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-pillow +2 9.4.0-2.amzn2023.0.8 ALAS2023-2026-1712
Amazon Linux 2 python-pillow +4 2.0.0-23.gitd1c6db8.amzn2.0.18 ALAS2-2026-3312

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-visualization-server 2.16.1-r0 —
Wolfi rolling open-webui 0.11.0-r0 —
Wolfi rolling superset-6.0 6.0.0-r10 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pillow < 12.2.0 12.2.0 GHSA-wjx4-4jcj-g98j

Advisories 5

References