cve.bz

CVE-2026-112403 python pillow: Heap-based Buffer Overflow

9.2 criticalExploit referenceEPSS 0.9%Fix available

Critical (9.2) in python pillow. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 13.0.0.

On this page
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's JPEG decoder can write a full-width scanline into a buffer sized for a requested draft scale. ImagingJpegDecode does not verify libjpeg's actual output width and component count after scaling is requested, and an 8-bit lossless SOF3 JPEG decoded by a build linked to libjpeg-turbo 3.x can ignore the requested downscaling geometry. An attacker can supply such a JPEG to an application that uses draft() or thumbnail() to request downscaling. This can corrupt heap memory, crash the process, or potentially allow code execution. Older libjpeg-turbo 2.x and IJG builds reject the SOF3 input. This issue is fixed in version 13.0.0.

Severity

CVSS 4.0

9.2 critical
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.9% (unchanged from 0.9% a week ago) estimated probability of exploitation activity in the next 30 days; 62nd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-10-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
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-112403 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-112403?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-112403?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-112403 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:pillowbefore 13.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8g5g-8vmr-9782PyPIpillow<13.0.013.0.0
PYSEC-2026-4332PyPIpillow<13.0.013.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13pillowno fix listedDEBIAN-CVE-2026-112403
Debian14pillow13.0.0-1DEBIAN-CVE-2026-112403
Ubuntu22.04:LTSpillow9.0.1-1ubuntu0.7USN-9064-1
Ubuntu24.04:LTSpillow10.2.0-1ubuntu1.5UBUNTU-CVE-2026-112403 USN-9064-1
Ubuntu26.04:LTSpillow12.1.1-2ubuntu1.5UBUNTU-CVE-2026-112403 USN-9064-1
Ubuntu26.10pillow12.3.0-1ubuntu2UBUNTU-CVE-2026-112403 USN-9064-1
UbuntuPro:14.04:LTSpillow2.3.0-1ubuntu3.4+esm6UBUNTU-CVE-2026-112403 USN-9064-1
UbuntuPro:16.04:LTSpillow3.1.2-0ubuntu1.6+esm4UBUNTU-CVE-2026-112403 USN-9064-1
UbuntuPro:18.04:LTSpillow5.1.0-1ubuntu0.8+esm3UBUNTU-CVE-2026-112403 USN-9064-1
UbuntuPro:20.04:LTSpillow7.0.0-4ubuntu0.9+esm2USN-9064-1
UbuntuPro:20.04:LTSpillow-python2no fix listedUBUNTU-CVE-2026-112403
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morepython-Pillow9.5.0-150400.5.28.1SUSE-SU-2026:5194-1
SUSELinux Enterprise Module for Package Hub 15 SP7python-Pillow7.2.0-150300.3.33.1SUSE-SU-2026:5038-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-Pillow11.3.0-160000.9.1SUSE-SU-2026:24656-1
SUSELinux Enterprise Server for NVIDIA 16.1python-Pillow11.3.0-160100.3.1SUSE-SU-2026:24701-1
openSUSELeap 16.0python-Pillow11.3.0-160000.9.1openSUSE-SU-2026:22246-1
openSUSELeap 16.1python-Pillow11.3.0-160100.3.1openSUSE-SU-2026:22301-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

The overflow only triggers when the application calls `draft()` or `thumbnail()` before loading the image. Direct `Image.open().load()` or `Image.open().resize()` decode at scale 1 and are unaffected. Many image processing pipelines use `load()` followed by `resize()`, not `thumbnail()`. The libjpeg-turbo 3.x requirement, specific code path, and dimension threshold make this **not easily exploitable** across the entire Pillow install base.

ProductPackageStateAdvisory
Red Hat Satellite 6.16 for RHEL 8python-pillow-0:13.0.0-1.el8pcFixed 2026-11-05RHSA-2026:95655
Red Hat Satellite 6.16 for RHEL 8python-pyyaml-0:6.0.1-1.el8pcFixed 2026-11-05RHSA-2026:95655
Red Hat Satellite 6.16 for RHEL 9python-pillow-0:13.0.0-1.el9pcFixed 2026-11-05RHSA-2026:95655
Red Hat Satellite 6.16 for RHEL 9python-pyyaml-0:6.0.1-1.el9pcFixed 2026-11-05RHSA-2026:95655
Red Hat Satellite 6.17 for RHEL 9python-pillow-0:13.0.0-1.el9pcFixed 2026-11-05RHSA-2026:95656
Red Hat Satellite 6.18 for RHEL 9python3.12-pillow-0:13.0.0-1.el9pcFixed 2026-11-05RHSA-2026:95657
Red Hat Satellite 6.19 for RHEL 9openvox-agent-0:8.31.1-1.el9satFixed 2026-10-29RHSA-2026:92861
Red Hat Satellite 6.19 for RHEL 9openvox-server-0:8.17.0-1.el9satFixed 2026-10-29RHSA-2026:92861
Red Hat Satellite 6.19 for RHEL 9python3.12-brotli-0:1.2.1-1.el9pcFixed 2026-10-29RHSA-2026:92861
Red Hat Satellite 6.19 for RHEL 9python3.12-django-0:4.2.30-3.el9pcFixed 2026-10-29RHSA-2026:92861
Exploit Intelligenceexploit-intelligence/vulnerability-analysis-rhel9Affected
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-cpu-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-cuda-12.9-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Not affected
Red Hat AI Inference Serverrhaii-fast/model-opt-cuda-rhel9Affected
Red Hat AI Inference Serverrhaii-fast/vllm-cpu-rhel9Affected
88 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-112403.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • al4n4n/CVE-2026-112403 0 stars, Python, created
    Moved to al4n4n/achilles-heel: https://github.com/al4n4n/achilles-heel/tree/main/CVE-2026-112403

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