CVE-2026-42311: CWE-190: Integer Overflow or Wraparound in python-pillow Pillow
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.
AI Analysis
Technical Summary
CVE-2026-42311 is an integer overflow or wraparound vulnerability (CWE-190) combined with memory corruption (CWE-787) in the Pillow Python imaging library. Specifically, when processing malicious PSD files in versions >=10.3.0 and <12.2.0, the vulnerability can trigger memory corruption that may result in application crashes or enable arbitrary code execution. The issue has been fixed in version 12.2.0 of Pillow.
Potential Impact
Successful exploitation of this vulnerability can cause memory corruption leading to denial of service (application crash) or potentially allow arbitrary code execution within the context of the affected application. The CVSS 4.0 base score is 8.6, indicating a high severity impact. No known exploits are reported in the wild as of the published date.
Mitigation Recommendations
Upgrade the Pillow library to version 12.2.0 or later, where this vulnerability has been patched. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is included in version 12.2.0.
CVE-2026-42311: CWE-190: Integer Overflow or Wraparound in python-pillow Pillow
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.
CVSS v4.0
Score 8.6high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42311 is an integer overflow or wraparound vulnerability (CWE-190) combined with memory corruption (CWE-787) in the Pillow Python imaging library. Specifically, when processing malicious PSD files in versions >=10.3.0 and <12.2.0, the vulnerability can trigger memory corruption that may result in application crashes or enable arbitrary code execution. The issue has been fixed in version 12.2.0 of Pillow.
Potential Impact
Successful exploitation of this vulnerability can cause memory corruption leading to denial of service (application crash) or potentially allow arbitrary code execution within the context of the affected application. The CVSS 4.0 base score is 8.6, indicating a high severity impact. No known exploits are reported in the wild as of the published date.
Mitigation Recommendations
Upgrade the Pillow library to version 12.2.0 or later, where this vulnerability has been patched. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is included in version 12.2.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-26T12:37:18.169Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fec4aacbff5d8610c50506
Added to database: 05/09/2026, 05:22:50 UTC
Last enriched: 05/16/2026, 10:16:54 UTC
Last updated: 06/26/2026, 20:56:20 UTC
Views: 106
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.