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 VendorProductAffected 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
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker full control (estimated)
Severity
9.4 Critical
Timeline
Published20 Nov 2026
Updated20 Nov 2026
First seen20 Nov 2026
Sources
Track software like this
Free during beta