CVE-2021-25289

CRITICAL

Pillow < 8.1.1 - Heap-Based Buffer Overflow in TiffDecode

Title source: llm
STIX 2.1

Description

An issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. NOTE: this issue exists because of an incomplete fix for CVE-2020-35654.

References (2)

Core 2
Core References
Release Notes, Vendor Advisory x_refsource_misc
https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/202107-33

Scores

CVSS v3 9.8
EPSS 0.0076
EPSS Percentile 73.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-787
Status published
Products (2)
pypi/pillow 0 - 8.1.1PyPI
python/pillow < 8.1.1
Published Mar 19, 2021
Tracked Since Feb 18, 2026