Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service
En bref
Sévérité
MEDIUM 5.3
EPSS
EPSS 0.40 % · centile 34 (2026-10-27)
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
GitHub_M
Statut NVD
Modified
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.
GHSA-pg7v-jwj7-p798 — Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service
PYSEC-2026-3452 — 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