CVE-2021-25287
published 2021-06-02CVE-2021-25287: An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
PriorityP344critical9.1CVSS 3.1
AVNACLPRNUINSUCHINAH
EPSS
2.88%
85.2th percentile
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | pillow | < pillow 8.1.2+dfsg-0.2 (bookworm) | pillow 8.1.2+dfsg-0.2 (bookworm) |
| fedoraproject | fedora | — | — |
| paloalto | pan-os | — | — |
| python | pillow | < 8.2.0 | 8.2.0 |
| python | pillow | >= 0 < 8.1.2+dfsg-0.2 | 8.1.2+dfsg-0.2 |
| python | pillow | >= 0 < 8.1.2+dfsg-0.2 | 8.1.2+dfsg-0.2 |
| python | pillow | >= 0 < 8.1.2+dfsg-0.2 | 8.1.2+dfsg-0.2 |
| python | pillow | >= 0 < 8.1.2+dfsg-0.2 | 8.1.2+dfsg-0.2 |
| python | pillow | >= 0 < 2.3.0-1ubuntu3.4+esm5 | 2.3.0-1ubuntu3.4+esm5 |
| python | pillow | >= 0 < 3.1.2-0ubuntu1.6+esm3 | 3.1.2-0ubuntu1.6+esm3 |
| python | pillow | >= 0 < 5.1.0-1ubuntu0.8+esm2 | 5.1.0-1ubuntu0.8+esm2 |
| python | pillow | >= 2.4.0 < 8.2.0 | 8.2.0 |
CVSS provenance
nvdv3.19.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
nvdv2.06.4MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:P
osv9.1CRITICAL
vendor_debian9.1LOW
vendor_redhat9.1CRITICAL
vendor_ubuntu9.1CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Pillow vulnerabilities
vendor_ubuntu·2026-03-31·CVSS 9.1
CVE-2023-50447 [CRITICAL] Pillow vulnerabilities
Title: Pillow vulnerabilities
Summary: Several security issues were fixed in Pillow.
It was discovered that Pillow did not correctly handle reading J2K files,
which could lead to an out-of-bounds read vulnerability. If a user or
automated system were tricked into opening a specially crafted file, an
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 16.04 LTS. (CVE-2021-25287, CVE-2021-25288)
It was discovered that Pillow did not correctly handle certain integer
arithmetic, which could lead to a buffer overflow. An attacker could
possibly use this issue to cause a denial of service or execute arbitrary
code. This issue only affected Ubuntu 14.04 LTS. (CVE-2021-25290)
It was discovered that Pillow did not correctly perform bounds checkin
Palo Alto
PAN-SA-2024-0004 Informational Bulletin: OSS CVEs fixed in PAN-OS
vendor_paloalto·2024-04-10·CVSS 9.8
CVE-2015-5739 [CRITICAL] PAN-SA-2024-0004 Informational Bulletin: OSS CVEs fixed in PAN-OS
PAN-SA-2024-0004 Informational Bulletin: OSS CVEs fixed in PAN-OS
The Palo Alto Networks Product Security Assurance team has evaluated the following open source software (OSS) CVEs as they relate to PAN-OS. While it was not determined that these CVEs have any significant impact on PAN-OS, they have been fixed out of an abundance of caution. CVE Summary CVE-2015-5739 This CVE is fixed in PAN-OS 11.0.4, and all later PAN-OS versions. CVE-2016-10228 This CVE is fixed in PAN-OS 11.1.3, and all later PAN-OS versions. CVE-2017-8923 This CVE is fixed in PAN-OS 10.2.8, 11.0.3, and all later PAN-OS versions. CVE-2017-9120 This CVE is fixed in PAN-OS 10.2.8, 11.0.3, and all later PAN-OS versions. CVE-2018-25009 This CVE is fixed in PAN-OS 10.2.8, 11.0.4, 11.1.3, and all later PAN-OS versions. CVE-2
Ubuntu
Pillow vulnerabilities
vendor_ubuntu·2021-05-19
CVE-2021-28677 Pillow vulnerabilities
Title: Pillow vulnerabilities
Summary: Pillow could be made to crash or hang if it opened a specially crafted
file.
It was discovered that Pillow incorrectly handled certain image files. If a
user or automated system were tricked into opening a specially-crafted
file, a remote attacker could cause Pillow to crash or hand, resulting in a
denial of service.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
python-pillow: Out-of-bounds read in J2K image reader
vendor_redhat·2021-04-01·CVSS 9.1
CVE-2021-25287 [CRITICAL] CWE-125 python-pillow: Out-of-bounds read in J2K image reader
python-pillow: Out-of-bounds read in J2K image reader
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
There is an out-of-bounds read in J2kDecode in j2ku_graya_la. For J2k images with multiple bands, it’s legal to have different widths for each band, e.g. 1 byte for L, 4 bytes for A.
Mitigation: To mitigate this feature on Red Hat Quay keep the invoice generation feature disabled as it is by default.
Package: python-pillow (Red Hat Enterprise Linux 7) - Out of support scope
Package: quay/quay-rhel8 (Red Hat Quay 3) - Affected
Debian
CVE-2021-25287: pillow - An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read i...
vendor_debian·2021·CVSS 9.1
CVE-2021-25287 [CRITICAL] CVE-2021-25287: pillow - An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read i...
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
Scope: local
bookworm: resolved (fixed in 8.1.2+dfsg-0.2)
bullseye: resolved (fixed in 8.1.2+dfsg-0.2)
forky: resolved (fixed in 8.1.2+dfsg-0.2)
sid: resolved (fixed in 8.1.2+dfsg-0.2)
trixie: resolved (fixed in 8.1.2+dfsg-0.2)
OSV
pillow vulnerabilities
osv·2026-03-31·CVSS 9.1
CVE-2021-25287 [CRITICAL] pillow vulnerabilities
pillow vulnerabilities
It was discovered that Pillow did not correctly handle reading J2K files,
which could lead to an out-of-bounds read vulnerability. If a user or
automated system were tricked into opening a specially crafted file, an
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 16.04 LTS. (CVE-2021-25287, CVE-2021-25288)
It was discovered that Pillow did not correctly handle certain integer
arithmetic, which could lead to a buffer overflow. An attacker could
possibly use this issue to cause a denial of service or execute arbitrary
code. This issue only affected Ubuntu 14.04 LTS. (CVE-2021-25290)
It was discovered that Pillow did not correctly perform bounds checking
for certain operations. An attacker could possibly use this i
GHSA
Out-of-bounds Read in Pillow
ghsa·2021-06-08
CVE-2021-25287 [HIGH] CWE-125 Out-of-bounds Read in Pillow
Out-of-bounds Read in Pillow
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
OSV
Out-of-bounds Read in Pillow
osv·2021-06-08
CVE-2021-25287 [HIGH] Out-of-bounds Read in Pillow
Out-of-bounds Read in Pillow
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
OSV
CVE-2021-25287: An issue was discovered in Pillow before 8
osv·2021-06-02·CVSS 9.1
CVE-2021-25287 [CRITICAL] CVE-2021-25287: An issue was discovered in Pillow before 8
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470https://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-jpeg2kdecodehttps://security.gentoo.org/glsa/202107-33https://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470https://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-jpeg2kdecodehttps://security.gentoo.org/glsa/202107-33
2021-06-02
Published