Skip to main content

CVE-2026-112392: CWE-476: NULL Pointer Dereference in python-pillow Pillow

0
High
VulnerabilityCVE-2026-112392cvecve-2026-112392cwe-476
Published: 10/19/2026 (10/19/2026, 21:17:18 UTC)
Source: CVE Database V5
Vendor/Project: python-pillow
Product: 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

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

Affected software

python-pillow

Pillow

Affected versions
<13.0.0
pillow
pkg:pypi/pillow
Affected versions
<13.0.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: 10/19/2026, 21:48:29 UTC

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.

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-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 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