Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.4
Pillow before 13.0.0 can corrupt memory from crafted JPEG
published 2 days ago
Summary
The Python imaging library Pillow (versions prior to 13.0.0) may write incorrect data when handling certain JPEG images that request downscaling. This can lead to memory corruption, crashes, or possible code execution in apps that use Pillow's draft() or thumbnail() functions. Upgrade Pillow to version 13.0.0 or later to resolve the issue.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Docker Hardened Images:Debian:13 | docker hardened images | datascience-notebook | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | litellm | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | mlflow | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | netbox | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | pytorch-2.11-cuda12.8-python3.11 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | pytorch-2.11-cuda12.9-python3.12 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | pytorch-2.11-cuda13.0-python3.11 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | pytorch-2.13-cuda12.6-python3.11 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | pytorch-2.13-cuda13.0-python3.12 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | pytorch-2.7-cuda12.8-python3.12 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | pytorch-2.9-cuda12.9-python3.12 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | superset | All versions |
Original advisory text
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's JPEG decoder can write a full-width scanline into a…
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.
References
- https://scout.docker.com/v/DHI-xjuf-uoy5-ddf5-7hnp Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-112403 Vendor Advisory
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782 Vendor Advisory
- https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750... Patch
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0 URL
- https://security-tracker.debian.org/tracker/CVE-2026-112403 Vendor Advisory
- https://github.com/advisories/GHSA-8g5g-8vmr-9782 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-112403 Vendor Advisory
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-112403 Vendor Advisory
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker full control (estimated)
Timeline
Published20 Nov 2026
Updated20 Nov 2026
First seen20 Nov 2026
Sources
DHI-xjuf-uoy5-ddf5-7hnp · OSV
Track software like this
Free during beta