ZeroDay Brief
CVE-2026-112393 Exploit code public

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…

CVSS
9.8Critical
Chance of exploitation (EPSS)
1.0%
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. Exploit code is public, so patch it soon.

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

Affected versions
Python-pillow Pillow
>= 2.0.0, < 13.0.0

Description

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.

CWE-122

Affected products

Get alerts for these →

Timeline 24

Latest change: googlesky/CVE-2026-112393: Pillow before 13.0.0 TIFF write heap buffer overflow (CVE-2026-112393, CVSS 9.2): _tiffWriteProc grows its buffer from the old size not the write location, so an out-of-line tag written after libtiff… (Nov 29, 2026)

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

Mon, Nov 16, 2026

  1. AdvisoryUSN-9064-2: Pillow regressionUbuntu · 18:07 UTC

Mon, Oct 19, 2026

  1. CVECVE-2026-112393 published (CVSS 9.8)CVE Program · 21:17 UTC

Exploit code

Visit at your own risk. These are third-party sites we find automatically. We do not test, review or vouch for them, and fake proof-of-concept repositories sometimes contain malware.

References 4

  • github.com Patch /python-pillow/Pillow/commit/11582e5ffbdceb973d5ee593f3105af5a9852b40
  • github.com ExploitPatchVendor Advisory /python-pillow/Pillow/security/advisories/GHSA-332p-7hrc-92wf
  • github.com ExploitPatchVendor Advisory /python-pillow/Pillow/security/advisories/GHSA-332p-7hrc-92wf
  • 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”