Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-59203 BIT-pillow-2026-59203EUVD-2026-43741GHSA-pg7v-jwj7-p798PYSEC-2026-3452

Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service

Published Jul 14, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

Description

Pillow is a Python imaging library. From 12.0.0 through 12.2.0, Pillow's EPS parser in PIL/EpsImagePlugin.py accepts a negative byte count in the %%BeginBinary directive, allowing a crafted EPS file to cause Image.open() to seek backwards to the same directive and parse it repeatedly in an infinite loop. This issue is fixed in version 12.3.0.

Affected products

VendorProductAffectedFixed
python-pillow Pillow >= 12.0.0, < 12.3.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.3.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS pillow 12.1.1-2ubuntu1.4 USN-8999-1
Ubuntu 24.04 LTS pillow 10.2.0-1ubuntu1.4 USN-8999-1
Ubuntu 22.04 LTS pillow 9.0.1-1ubuntu0.6 USN-8999-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui 0.10.2-r1 —
Wolfi rolling superset-6.0 6.0.0-r13 —
Wolfi rolling superset-6.1 6.1.0-r6 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pillow >= 12.0.0, < 12.3.0 12.3.0 GHSA-pg7v-jwj7-p798

Advisories 1

References