Live threats

All CVEs / Python

CVE-2021-28678Python Pillow

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.7%
probability of exploitation in 30 days · percentile 56
Auth required
Yes
Published
Jun 2, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-345
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

An issue was discovered in Pillow before 8.2.0. For BLP data, BlpImagePlugin did not properly check that reads (after jumping to file offsets) returned data. This could lead to a DoS where the decoder could be run a large number of times on empty data.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pillow.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pillow ≥ 5.1.0 < 8.2.0 8.2.0 pip install "pillow>=8.2.0"
PyPI pillow < 8.2.0 8.2.0 pip install "pillow>=8.2.0"

Per OSV / GitHub Advisories (GHSA-hjfx-8p6c-g7gx, PYSEC-2021-94). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pythonpillow< 8.2.0
fedoraprojectfedora33

Official sources

References

Links published by the sources. Open them with care.