CVE-2026-112392: CWE-476: NULL Pointer Dereference in python-pillow Pillow
Description
A NULL pointer dereference vulnerability exists in python-pillow Pillow versions prior to 13.0.0. The issue occurs when rank-based filters process a zero-size image, causing a native process crash. This vulnerability is fixed in version 13.0.0.
CVSS v4.0
Score 8.2high
Affected software
python-pillow
Pillow
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Pillow, a Python imaging library, has a vulnerability (CWE-476) in versions before 13.0.0 where rank-based filters (rank, median, minimum, maximum) can dereference invalid image storage if given a zero-size image. The function ImagingExpand() allocates a non-empty output but faults when replicating edges by reading the first pixel from empty input storage, leading to a NULL pointer dereference and process crash. The ImagingRankFilter function is never reached due to this fault. An attacker can exploit this by supplying or causing the creation of a zero-size image in an application that applies these filters. This issue is resolved in Pillow version 13.0.0.
Potential Impact
Exploitation of this vulnerability causes a native process crash, resulting in denial of service. There is no indication of code execution or data corruption beyond the crash. The CVSS 4.0 score is 8.2 (high severity), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on availability.
Mitigation Recommendations
Upgrade to Pillow version 13.0.0 or later, where this vulnerability is fixed. No other mitigations are indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-19T16:58:51.959Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ad68cd42cdf04f65692eeba
Added to database: 10/19/2026, 21:34:12 UTC
Last enriched: 10/19/2026, 21:48:29 UTC
Last updated: 10/19/2026, 21:48:29 UTC
Views: 6
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.