CVE-2026-112395

Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)

State
Published
Severity
6.5 Medium
Published
Oct 19, 2026
Updated
Oct 28, 2026
Reserved
Oct 19, 2026

Read the record on cve.org

Description

Pillow is a Python imaging library. From 8.2.0 until 13.0.0, Pillow's tiled-TIFF decoder can read past the tile buffer while copying four-byte pixels. In _decodeTile, libtiff can return a tile allocation smaller than the required row stride multiplied by the tile length, and Pillow's stride-and-copy loop walks beyond that allocation. An attacker can supply a crafted tiled TIFF to an application that loads it. This can expose adjacent heap data in pixels or crash the process. This issue is fixed in version 13.0.0.

Scores

CVSSScoreVectorSource
3.16.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:LGitHub_M

Weaknesses

Affected Products

ProductVersions
Pillowpython-pillow
  • >= 8.2.0, < 13.0.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.