Heap-based Buffer Overflow Affecting pillow package, versions [8.2.0,12.3.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.26% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PILLOW-21277798
  • published20 Oct 2026
  • disclosed19 Oct 2026
  • creditDavidKorczynski

Introduced: 19 Oct 2026

NewCVE-2026-112395  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade pillow to version 12.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the _decodeAsRGBA and _decodeTile functions in src/libImaging/TiffDecode.c when processing a TIFF image whose unpacker row size exceeds the libtiff-decoded row size. An attacker can supply a malformed TIFF file that triggers a read buffer overflow on the last row of a decoded block or tile, leading to out-of-bounds memory access and potential information disclosure or a crash.

CVSS Base Scores

version 4.0
version 3.1