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

CVE-2026-112398: Pillow library may let attackers execute code

CVE-2026-112398 · published 1 month ago
Summary

The Pillow image‑processing library used in Python applications has a flaw that could let a malicious user run unauthorized code on the server. Updated versions of Pillow from the listed package sources fix the problem. Apply the latest Pillow release to all systems that use it.

What to do
  • Update pillow to version 10.3.0+aikido.20.
  • Update pillow to version 13.0.0.
  • Update pillow to version 12.2.0+aikido.8.
  • Update pillow to version 11.3.0+aikido.10.
  • Update pillow to version 11.1.0+aikido.15.
  • Update pillow to version 11.2.1+aikido.9.
  • Update pillow to version 10.2.0+aikido.1.
  • Update pillow to version 11.3.0+aikido.11.
  • Update pillow to version 11.0.0+aikido.13.
  • Update pillow to version 8.1.2+aikido.1.
  • Update pillow to version 8.0.1+aikido.2.
  • Update pillow to version 10.4.0+aikido.16.
  • Update pillow to version 10.1.0+aikido.1.
  • Update pillow to version 10.0.0+aikido.1.
  • Update pillow to version 10.3.0+aikido.19.
  • Update pillow to version 12.3.0+aikido.4.
  • Update pillow to version 9.4.0+aikido.1.
  • Update pillow to version 9.0.0+aikido.1.
  • Update pillow to version 9.2.0+aikido.1.
  • Update pillow to version 9.0.0+aikido.2.
  • Update pillow to version 11.0.0+aikido.14.
  • Update pillow to version 9.5.0+aikido.15.
  • Update pillow to version 9.5.0+aikido.17.
  • Update pillow to version 9.5.0+aikido.19.
  • Update pillow to version 10.4.0+aikido.18.
  • Update pillow to version 12.1.1+aikido.2.
  • Update pillow to version 12.0.0+aikido.2.
  • Update debian pillow to version 13.0.0-1.
  • Update pillow to version 10.0.1+aikido.1.
  • Update pillow to version 7.1.2+aikido.1.
  • Update pillow to version 8.3.1+aikido.1.
  • Update pillow to version 10.4.0+aikido.19.
  • Update canonical pillow to version 2.3.0-1ubuntu3.4+esm6.
  • Update canonical pillow to version 3.1.2-0ubuntu1.6+esm4.
  • Update canonical pillow to version 5.1.0-1ubuntu0.8+esm3.
  • Update canonical pillow to version 7.0.0-4ubuntu0.9+esm2.
  • Update canonical pillow to version 9.0.1-1ubuntu0.7.
  • Update canonical pillow to version 10.2.0-1ubuntu1.5.
  • Update canonical pillow to version 12.3.0-1ubuntu2.
  • Update canonical pillow to version 12.1.1-2ubuntu1.5.
  • Update python pillow to version 13.0.0 or later.
Affected software
Ecosystem VendorProductAffected versions
Root:PyPI – pillow < 10.3.0+aikido.20
< 12.2.0+aikido.8
< 11.3.0+aikido.10
< 11.1.0+aikido.15
< 11.2.1+aikido.9
< 10.2.0+aikido.1
< 11.3.0+aikido.11
< 11.0.0+aikido.13
< 8.1.2+aikido.1
< 8.0.1+aikido.2
< 10.4.0+aikido.16
< 10.1.0+aikido.1
18 more version ranges
Fix: upgrade to 10.3.0+aikido.20
– python-pillow pillow < 13.0.0
Debian:12 debian pillow All versions
Ubuntu:Pro:14.04:LTS canonical pillow < 2.3.0-1ubuntu3.4+esm6
Fix: upgrade to 2.3.0-1ubuntu3.4+esm6
Ubuntu:Pro:20.04:LTS canonical pillow-python2 All versions
pip – pillow <= 12.3.0
Fix: upgrade to 13.0.0
PyPI – pillow < 13.0.0
Fix: upgrade to 13.0.0
– python pillow < 13.0.0
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
Debian:14 debian pillow < 13.0.0-1
Fix: upgrade to 13.0.0-1
Ubuntu:Pro:16.04:LTS canonical pillow < 3.1.2-0ubuntu1.6+esm4
Fix: upgrade to 3.1.2-0ubuntu1.6+esm4
Ubuntu:Pro:18.04:LTS canonical pillow < 5.1.0-1ubuntu0.8+esm3
Fix: upgrade to 5.1.0-1ubuntu0.8+esm3
Ubuntu:Pro:20.04:LTS canonical pillow < 7.0.0-4ubuntu0.9+esm2
Fix: upgrade to 7.0.0-4ubuntu0.9+esm2
Ubuntu:22.04:LTS canonical pillow < 9.0.1-1ubuntu0.7
Fix: upgrade to 9.0.1-1ubuntu0.7
Ubuntu:24.04:LTS canonical pillow < 10.2.0-1ubuntu1.5
Fix: upgrade to 10.2.0-1ubuntu1.5
Ubuntu:26.10 canonical pillow < 12.3.0-1ubuntu2
Fix: upgrade to 12.3.0-1ubuntu2
Ubuntu:26.04:LTS canonical pillow < 12.1.1-2ubuntu1.5
Fix: upgrade to 12.1.1-2ubuntu1.5
Original advisory text
CVE-2026-112398 in pillow - Patched by Root
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.4 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-122Heap-based Buffer Overflow
CWE-787Out-of-bounds Write
Timeline
Published19 Oct 2026
Updated24 Nov 2026
First seen19 Oct 2026
Track software like this
Free during beta