CVE-2026-112403
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
PillowPyPI | < 13.0.0 | 13.0.0 |
Affected products
5cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*range: <13.0.0
- (no CPE)range: <13.0.0
- osv-coords3 versionspkg:bitnami/pillowpkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.1
< 13.0.0+ 2 more
- (no CPE)range: < 13.0.0
- (no CPE)range: < 11.3.0-160000.9.1
- (no CPE)range: < 11.3.0-160100.3.1
Patches
Vulnerability mechanics
References
5- github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75nvdPatchWEB
- github.com/python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782nvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-8g5g-8vmr-9782ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-112403ghsaADVISORY
- github.com/python-pillow/Pillow/releases/tag/13.0.0nvdRelease NotesWEB
News mentions
3- ⚡ Weekly Recap: This2Shell, That2Shell, Everything's an RCE? Rogue AI, Supply Chain Chaos and MoreThe Hacker News · Oct 26, 2026
- Critical Flaw in Python’s Popular Pillow Image Library Allows Code Execution via a Crafted ImageThe Hacker News · Oct 23, 2026
- Pillow: 25 Vulnerabilities Disclosed Together, Ranging from Critical to MediumVypr Intelligence · Oct 19, 2026