VDB
CVE-2021-25288
CVE-2021-25288
PUBLISHED
CVSS 9.100000381469727 CRITICAL
Pillow Out-of-bounds Read vulnerability
Reported by mitre · Published June 2, 2021
pillow is fixed in 8.2.0 (PyPI)
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pillow | PyPI | 8.2.0 |
| py3-pillow | Alpine | 8.2.0-r0 |
| pillow | Ubuntu:20.04:LTS | 7.0.0-4ubuntu0.4 |
| pillow | Ubuntu:18.04:LTS | 5.1.0-1ubuntu0.6 |
Risk scores
CVSS 3.1
9.100000381469727
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | py3-pillow | 0 |
| PyPI | Pillow | 2.4.0 |
| n/a | n/a | * |
Timeline
- May 10, 2021 CVE Published
- Jun 3, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 7, 2026 Distribution Patch (5 in total, the first dated here)
- Mar 7, 2026 Security Advisory (9 in total, the first dated here)
- Aug 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-25288
vulnetix vdb fixes CVE-2021-25288
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-25288/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2021-77756994ba vendor-advisoryx_refsource_FEDORA
- GLSA-202107-33 vendor-advisoryx_refsource_GENTOO
- https://nvd.nist.gov/vuln/detail/CVE-2021-25288 advisory
- https://github.com/advisories/GHSA-rwv7-3v45-hg29 advisory
- https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87 patch
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-138.yaml advisory
- https://github.com/python-pillow/Pillow url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL url