Live threats

All CVEs / Python

CVE-2021-25287Python Pillow

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
2.4%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Jun 2, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-125
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

What happens

An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pillow.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pillow ≥ 2.4.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-77gc-v2xv-rvvh, PYSEC-2021-137). 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.