Out-of-bounds Read Affecting pillow package, versions <7.0.0-4ubuntu0.9+esm2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.48% (43rd 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-UBUNTU2004-PILLOW-21486584
  • published4 Nov 2026
  • disclosed19 Oct 2026

Introduced: 19 Oct 2026

CVE-2026-112896  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 pillow to version 7.0.0-4ubuntu0.9+esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pillow package and not the pillow package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

Pillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.

CVSS Base Scores

version 3.1