Buffer Over-read Affecting pillow package, versions [,13.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.29% (21st 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-21277782
  • published20 Oct 2026
  • disclosed19 Oct 2026
  • creditNicholas Carlini, Kadd01, Bryan Porras

Introduced: 19 Oct 2026

NewCVE-2026-112404  (opens in a new tab)
CWE-126  (opens in a new tab)

How to fix?

Upgrade pillow to version 13.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Over-read via the _decodeStrip and _decodeTile functions in src/libImaging/TiffDecode.c, where the TIFF strip and tile decode buffers are reallocated without zeroing the region beyond previously decoded data. When a codec such as JPEG or Group 4 successfully decodes fewer rows than the declared strip height or tile length, the remainder of the reallocated buffer retains uninitialized heap memory, which is then copied directly into the output image. An attacker who can supply a malformed TIFF file can thereby cause uninitialized memory contents to appear in the decoded image data.

CVSS Base Scores

version 4.0
version 3.1