ZeroDay Brief
CVE-2026-112403

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 igno…

CVSS
9.8Critical
Chance of exploitation (EPSS)
1.7%
Published
Oct 19, 2026
In the news
2 stories
Vendor advisory More from this vendor

What to do

A critical buffer overflow in Python Pillow and Python-pillow Pillow that can be attacked over the network without logging in. No attacks are reported yet, but patch it soon.

Action: Apply the vendor's update or follow its advisory.

Affected versions
Python-pillow Pillow
< 13.0.0

Description

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.

CWE-122

Affected products

Get alerts for these →

Timeline 14

Latest change: USN-9064-2: Pillow regression (Nov 16, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

References 4

  • github.com Patch /python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75
  • github.com ExploitVendor Advisory /python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782
  • github.com ExploitVendor Advisory /python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782
  • github.com /python-pillow/Pillow/releases/tag/13.0.0

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”