Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 95%

CVE-2026-42311: CWE-190: Integer Overflow or Wraparound in python-pillow Pillow

0
High
VulnerabilityCVE-2026-42311cvecve-2026-42311cwe-190cwe-787
Published: 05/09/2026 (05/09/2026, 04:11:58 UTC)
Source: CVE Database V5
Vendor/Project: python-pillow
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

pillow
pkg:pypi/pillow
Affected versions
>=10.3.0 <12.2.0

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

AILast updated: 05/16/2026, 10:16:54 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses