Integer overflow in Pillow - CVE-2026-42311

 

Integer overflow in Pillow - CVE-2026-42311

Published: November 22, 2026


Vulnerability identifier: #VU169367
CSH Severity: Medium
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-42311
CWE-ID: CWE-190
Exploitation vector: Local access
Exploit availability: No public exploit available

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

Pillow
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

Install security update from vendor's website.

Pillow - update to 12.2.0
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

External References

Related Security Bulletins