Feed
9.1CRITICAL
CVE-2021-25288Pillow Out-of-bounds Read vulnerability
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 2.4% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 2.4%
- percentile 85%
- Fix
- Named by a source
- CVE published 2 Jun 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 2.4% (+2) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- pillow (PyPI): upgrade to 8.2.0 or later on your release line.
- Commit / pull request: https://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470
- Commit / pull request: https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
Who should check
pillow (PyPI) pkg:pypi/pillow
- Affected>= 2.4.0, < 8.2.0Fixed in8.2.0OSV (GHSA-rwv7-3v45-hg29)
- Affected< 8.2.0Fixed in8.2.0OSV (PYSEC-2021-138)
Confirmed facts
- CVSS
- 9.1 CRITICAL (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-rwv7-3v45-hg29)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-125
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-25288
- commit / pull requesthttps://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470
- commit / pull requesthttps://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
- advisoryhttps://github.com/advisories/GHSA-rwv7-3v45-hg29
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-138.yaml
- otherhttps://github.com/python-pillow/Pillow
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL
- otherhttps://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecode
- otherhttps://security.gentoo.org/glsa/202107-33
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-rwv7-3v45-hg29 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2021-138 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 29 min ago · osv 29 min ago · nvd 90 min ago · epss 29 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-pillow-2021-25288, GHSA-rwv7-3v45-hg29, PYSEC-2021-138