cve.bz

CVE-2026-42311 python pillow: Year 2038 problem, Y2K38, Y2038, Epochalypse

8.6 highEPSS 0.1%Fix available

High (8.6) in python pillow. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 12.2.0.

On this page
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.

Severity

CVSS 4.0

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

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 4th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-05-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42311 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42311?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42311?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42311 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pillowfrom 10.3.0 before 12.2.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pwv6-vv43-88grPyPIpillow>=10.3.0 <12.2.012.2.0
PYSEC-2026-2252PyPIpillow>=10.3.0 <12.2.012.2.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13pillow11.1.0-5+deb13u3DEBIAN-CVE-2026-42311 DSA-6357-1
Debian14pillow12.2.0-1DEBIAN-CVE-2026-42311
Ubuntu22.04:LTSpillow9.0.1-1ubuntu0.4USN-8399-1
Ubuntu24.04:LTSpillow10.2.0-1ubuntu1.2USN-8399-1
Ubuntu25.10pillow11.3.0-1ubuntu1.3UBUNTU-CVE-2026-42311 USN-8399-1
Ubuntu26.04:LTSpillow12.1.1-2ubuntu1.2UBUNTU-CVE-2026-42311 USN-8399-1
UbuntuPro:20.04:LTSpillow-python2no fix listedUBUNTU-CVE-2026-42311
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-Pillow11.3.0-160000.6.1SUSE-SU-2026:22626-1
openSUSELeap 16.0python-Pillow11.3.0-160000.6.1openSUSE-SU-2026:21296-1
openSUSETumbleweedpython-Pillow12.3.0-1.1openSUSE-SU-2026:11261-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important severity flaw in Pillow, a Python imaging library, that could lead to arbitrary code execution. The vulnerability requires a user to process a specially crafted malicious PSD file, which could result in memory corruption and allow an attacker to execute arbitrary code. Red Hat products that process untrusted image files using Pillow are at risk if they do not adequately sanitize input or operate in a sandboxed environment.

Red Hat's mitigation

To mitigate this vulnerability, users should avoid processing untrusted or suspicious PSD image files with applications that utilize the Pillow library. Implementing strict input validation and sanitization for image uploads and processing workflows can reduce the risk. Additionally, running applications that process untrusted content within a sandboxed environment can limit the potential impact of successful exploitation.

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.2rhaiis/model-opt-cuda-rhel9:1787772157Fixed 2026-08-31RHSA-2026:61628
Red Hat AI Inference Server 3.3rhaiis/model-opt-cuda-rhel9:1778244559Fixed 2026-05-11RHSA-2026:16008
Red Hat AI Inference Server 3.3rhaiis/vllm-rocm-rhel9:1778244531Fixed 2026-05-11RHSA-2026:16009
Red Hat AI Inference Server 3.3rhaiis/vllm-cuda-rhel9:1778274666Fixed 2026-05-11RHSA-2026:16030
Red Hat AI Inference Server 3.4rhaii/vllm-spyre-rhel9:1787151840Fixed 2026-08-20RHSA-2026:57387
Red Hat AI Inference Server 3.4rhaii/vllm-spyre-rhel9:1789681201Fixed 2026-09-21RHSA-2026:69464
Red Hat AI Inference Server 3.4rhaii/vllm-spyre-rhel9:1790076141Fixed 2026-09-23RHSA-2026:70969
Red Hat OpenShift AI 3.4rhoai/odh-automl-rhel9:1786612415Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-autorag-rhel9:1786612637Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-openvino-model-server-rhel9:1787303251Fixed 2026-08-27RHSA-2026:60520
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Will not fix
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Not affected
Red Hat AI Inference Serverrhaii/model-opt-cuda-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-cpu-rhel9Will not fix
Red Hat AI Inference Serverrhaiis/vllm-neuron-rhel9Will not fix
Red Hat AI Inference Serverrhaiis/vllm-spyre-rhel9Will not fix
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Will not fix
63 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42311.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON