Use of Uninitialized Resource 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-21277734
  • published20 Oct 2026
  • disclosed19 Oct 2026
  • creditNicholas Carlini

Introduced: 19 Oct 2026

NewCVE-2026-112897  (opens in a new tab)
CWE-908  (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 Use of Uninitialized Resource via the TIFF strip and tile decoder in src/libImaging/TiffDecode.c, when decoding TIFF images using codecs (such as JPEG or Group 4) that successfully decode fewer rows than the declared strip or tile length. The buffer allocated for the strip or tile is not zeroed beyond the actually decoded data, so the remaining portion retains uninitialized heap memory. When Pillow copies this buffer into the output image, the uninitialized memory is exposed as pixel data in the resulting image object, potentially leaking process memory contents to an attacker who can read the decoded image.

CVSS Base Scores

version 4.0
version 3.1