CVE-2026-42311 Details
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.
A vulnerability in the Python imaging library Pillow, affecting versions 10.3.0 prior to 12.2.0, allows for memory corruption when processing malicious PSD files. This could lead to crashes or arbitrary code execution. The issue arises from integer overflow in tile extent calculations, which can be exploited to bypass bounds checks and cause out-of-bounds writes. The vulnerability has been patched in Pillow version 12.2.0.
Users should upgrade to Pillow version 12.2.0, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/python-pillow/Pillow/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea | [email protected] | Patch |
| https://github.com/python-pillow/Pillow/pull/9520 | [email protected] | Issue TrackingPatch |
| https://github.com/python-pillow/Pillow/releases/tag/12.2.0 | [email protected] | ProductRelease Notes |
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python pillow | >= 10.3.0, < 12.2.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 14, 2026 | Initial Analysis | [email protected] |
| May 9, 2026 | New CVE Received | [email protected] |