CVE-2021-25288
JSON

9.1critical

Pillow Out-of-bounds Read vulnerability

Severity
9.1critical CVSS:3.1 by NVD
Exploit likelihood
2.39% (higher than 84% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-rwv7-3v45-hg29BIT-PILLOW-2021-25288PYSEC-2021-138

Description

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

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
pillow (PyPI)from 2.4.0 before 8.2.0, before 8.2.0GitHub Advisory Database, PyPA Advisory Database
python pillowbefore 8.2.0NVD
fedoraproject fedora33NVD
pillow (Bitnami)before 8.2.0Bitnami Vulnerability Database

All scores

GitHub9.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:P
Bitnami Vulnerability Databasecritical rating

Classification

What each source says

CVE List

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

GitHub Advisory Database

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.

NVD (es)

Se ha detectado un problema en Pillow versiones anteriores a 8.2.0,. Se presenta una lectura fuera de límites en J2kDecode, en la función j2ku_gray_i

References

https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecodeadvisory, vendor-advisory, web
https://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470advisory, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/vendor-advisory, web
https://security.gentoo.org/glsa/202107-33advisory, third-party-advisory, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-25288advisory, web
https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87web
https://github.com/advisories/GHSA-rwv7-3v45-hg29advisory
https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-138.yamlweb
https://github.com/python-pillow/Pillowpackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FLweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/web

Sources

SourceRecordLicence
CVE ListCVE-2021-25288 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-rwv7-3v45-hg29 changed 2024-10-09CC-BY-4.0
NVDCVE-2021-25288 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-138 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-PILLOW-2021-25288 changed 2026-09-08Apache-2.0