Infinite loop in Pillow - CVE-2026-59203

 

Infinite loop in Pillow - CVE-2026-59203

Published: July 7, 2026


Vulnerability identifier: #VU137008
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59203
CWE-ID: CWE-835
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to improper input validation in the EPS parser in PIL/EpsImagePlugin.py when parsing a crafted EPS %%BeginBinary directive during Image.open(). A remote attacker can supply a specially crafted EPS file with a negative byte count to cause a denial of service.

The issue is triggered during Image.open(), does not require calling Image.load(), and does not require Ghostscript execution.


Affected software

Pillow
Anolis OS
python3-pillow
python3-pillow-devel
python3-pillow-qt
python3-pillow-tk
python3-pillow-doc

How to mitigate CVE-2026-59203

Install security update from vendor's website.

Pillow - update to 12.3.0
python3-pillow - update to 12.2.0-3
python3-pillow-devel - update to 12.2.0-3
python3-pillow-qt - update to 12.2.0-3
python3-pillow-tk - update to 12.2.0-3
python3-pillow-doc - update to 12.2.0-3

External References

Related Security Bulletins