Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.4
Pillow before 13.0.0 lets malicious image run code
published 2 days ago
Summary
The Python imaging library Pillow, versions earlier than 13.0.0, can be tricked by a specially crafted FlashPix file to write data beyond its memory buffer. This can corrupt memory and potentially let an attacker run code when an application (such as the listed Docker images) opens or creates thumbnails of untrusted files. Update Pillow to version 13.0.0 or later to stop the risk.
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 FlashPix JPEG-tile decoder can write decoded scanlines…
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrecognized JPEG mode can be decoded as JCS_UNKNOWN with four components, causing ImagingJpegDecode to write four-component scanlines into the two-byte tile buffer. An attacker can supply a crafted OLE2 FlashPix file to an application with the optional olefile dependency installed that opens or thumbnails untrusted input. This can corrupt heap memory and may allow arbitrary code execution. This issue is fixed in version 13.0.0.
References
- https://scout.docker.com/v/DHI-7zph-oflm-syb3-uywf Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-112398 Vendor Advisory
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-5x8w-8jj5-q52h Vendor Advisory
- https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750... Patch
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0 URL
- https://errata.almalinux.org/8/ALSA-2026-93077.html Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:93077 Vendor Advisory
- https://alas.aws.amazon.com/AL2/ALAS-2026-4075.html Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112901 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112398 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112392 Vendor Advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-3411.html Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-96778 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112900 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112897 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112896 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112894 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112399 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112393 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112390 Vendor Advisory
- https://security-tracker.debian.org/tracker/CVE-2026-112398 Vendor Advisory
- https://github.com/advisories/GHSA-5x8w-8jj5-q52h Vendor Advisory
- https://linux.oracle.com/cve/ELSA-2026-93077.html Vendor Advisory
- https://linux.oracle.com/errata/ELSA-2026-93077.html Vendor Advisory
- https://errata.rockylinux.org/RLSA-2026:93077 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-112398 Vendor Advisory
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-112398 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-7zph-oflm-syb3-uywf · OSV
Track software like this
Free during beta