PT-2021-17670 · Pillow+9 · Pillow+9

Published

2021-03-03

·

Updated

2025-08-15

·

CVE-2021-27921

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions: Pillow versions prior to 8.1.1
Description: The issue allows attackers to cause a denial of service due to memory consumption. This occurs because the reported size of a contained image is not properly checked for a BLP container, leading to potentially very large attempted memory allocations.
Recommendations: For Pillow versions prior to 8.1.1, update to version 8.1.1 or later to resolve the issue. As a temporary workaround, consider restricting the processing of BLP containers to minimize the risk of exploitation.

Fix

DoS

RCE

Resource Exhaustion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2021:4149
ALT-PU-2021-1491
ALT-PU-2021-1617
BIT-PILLOW-2021-27921
CESA-2021_4149
CVE-2021-27921
GHSA-F4W8-CV6P-X6R5
OESA-2021-1127
OESA-2021-1146
OPENSUSE-SU-2021:1134-1
OPENSUSE-SU-2021_1134-1
OPENSUSE-SU-2024:11209-1
OPENSUSE-SU-2024:13827-1
OPENSUSE-SU-2024_1673-1
PYSEC-2021-40
RHSA-2021:4149
RHSA-2021_4149
RLSA-2021:4149
SUSE-SU-2021:1938-1
SUSE-SU-2024:1673-1
SUSE-SU-2024:1673-2
USN-4763-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Pillow
Red Hat
Rocky Linux
Suse
Ubuntu