What’s Vulnerable › Vulnerabilities

CVE-2026-42311: Pillow: OOB Write with Invalid PSD Tile Extents (Integer Overflow)

Description

Pillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.

Affected products

How to fix

Upgrade to a fixed version: python-pillow Pillow 12.2.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-42311 or the next vulnerability affects your stack