Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.4

Pillow up to 13 can corrupt memory when saving TIFF files

published 2 days ago
Summary

The Python imaging library Pillow versions 2.0.0 through 13.0.0 can overflow memory or expose leftover data when it writes compressed TIFF images to in‑memory objects such as BytesIO. This can cause the application to crash or, in rare cases, let an attacker run code. Upgrade Pillow to version 13.0.0 or later in the listed Docker images (datascience‑notebook, litellm, mlflow, netbox, pytorch‑2.11‑cuda12.8‑python3.11) 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 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. From 2.0.0 until 13.0.0, Pillow has a heap buffer overflow and stale-heap…
Pillow is a Python imaging library. From 2.0.0 until 13.0.0, Pillow has a heap buffer overflow and stale-heap disclosure in _tiffWriteProc when saving compressed TIFF data through libtiff to a target without a usable fileno(), such as BytesIO. The callback sizes its allocation from the prior buffer size instead of the current write position, allowing an attacker-controlled out-of-line TIFF tag or retained ICC profile to be copied beyond the allocation after libtiff seeks forward. This overflow can crash the process and may allow code execution. Independently, unwritten alignment gaps in compressed TIFF output larger than 64 KiB can disclose stale heap bytes without a crafted tag. File paths and targets with real file descriptors are unaffected. This issue is fixed in version 13.0.0.
References
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (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