PYSEC-2026-3452

At a glance

Published
Updated
CVE
CVE-2026-59203
Aliases
BIT-pillow-2026-59203, GHSA-pg7v-jwj7-p798
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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 packages

PackageVersions
PyPI · pillowintroduced 12.0.0, fixed 12.3.0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — PyPA Advisory Database