critical9.1
CVE-2021-25288
Pillow Out-of-bounds Read vulnerability
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | Pillow | >= 2.4.0, < 8.2.0 | 8.2.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Python | Pillow | before 8.2.0 |
| Fedoraproject | Fedora | Version 33 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/
- https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecode
- https://security.gentoo.org/glsa/202107-33
- https://github.com/advisories/GHSA-rwv7-3v45-hg29
- https://nvd.nist.gov/vuln/detail/CVE-2021-25288
- https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-138.yaml
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL