Integer overflow in Pillow - CVE-2026-42311
Published: November 22, 2026
Vulnerability details
The vulnerability allows a remote attacker to corrupt memory, potentially causing a crash or arbitrary code execution.
The vulnerability exists due to an integer overflow in Pillow's PSD tile bounds checks when the decoder or encoder calculates tile extents. A remote attacker can trick a victim into processing a crafted PSD file to bypass the bounds checks and trigger an out-of-bounds write.
Affected software
Debian Linux
openEuler
python3-pillow
python3-pillow-help
python3-pillow-tk
python3-pillow-qt
python3-pillow-devel
python-pillow-debugsource
python-pillow-debuginfo
python-pillow
pillow (Debian package)
How to mitigate CVE-2026-42311
python3-pillow - update to 10.3.0-5
python3-pillow-help - update to 10.3.0-5
python3-pillow-tk - update to 10.3.0-5
python3-pillow-qt - update to 10.3.0-5
python3-pillow-devel - update to 10.3.0-5
python-pillow-debugsource - update to 10.3.0-5
python-pillow-debuginfo - update to 10.3.0-5
python-pillow - update to 10.3.0-5
pillow (Debian package) - update to 11.1.0-5+deb13u3