Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2021-25288

CVE-2021-25288: Pillow Out-of-bounds Read vulnerability

June 8, 2021 (updated October 9, 2024)

An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i. This dates to Pillow 2.4.0.

References

  • github.com/advisories/GHSA-rwv7-3v45-hg29
  • github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-138.yaml
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
  • github.com/python-pillow/Pillow/pull/5377
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL
  • nvd.nist.gov/vuln/detail/CVE-2021-25288
  • pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html
  • security.gentoo.org/glsa/202107-33

Code Behaviors & Features

Detect and mitigate CVE-2021-25288 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.4.0 before 8.2.0

Fixed versions

  • 8.2.0

Solution

Upgrade to version 8.2.0 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read

Source file

pypi/Pillow/CVE-2021-25288.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:03 +0000.