Feed
5.5MEDIUM
CVE-2021-28675Pillow denial of service
A medium-severity vulnerability reachable with local access, needing no privileges and user interaction. EPSS estimates a 1.2% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.2%
- percentile 68%
- Fix
- Named by a source
- CVE published 2 Jun 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.2% (+1) · No privileges required (+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/commits/22e9bee4ef225c0edbb9323f94c26cee0c623497
Who should check
pillow (PyPI) pkg:pypi/pillow
- Affected< 8.2.0Fixed in8.2.0OSV (PYSEC-2021-139)
Confirmed facts
- CVSS
- 5.5 MEDIUM (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-g6rj-rv7j-xwp4)
- Attack vector
- local
- Attack complexity
- low
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-233, CWE-252
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. `PSDImagePlugin.PsdImageFile` lacked a sanity check on the number of input layers relative to the size of the data block. This could lead to a DoS on `Image.open` prior to `Image.load`.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-28675
- commit / pull requesthttps://github.com/python-pillow/Pillow/pull/5377/commits/22e9bee4ef225c0edbb9323f94c26cee0c623497
- advisoryhttps://github.com/advisories/GHSA-g6rj-rv7j-xwp4
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-139.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-28675-fix-dos-in-psdimageplugin
- 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-g6rj-rv7j-xwp4 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2021-139 (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 50 min ago · osv 49 min ago · nvd 19 min ago · epss 49 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-pillow-2021-28675, GHSA-g6rj-rv7j-xwp4, PYSEC-2021-139