Feed
6.5MEDIUM
CVE-2021-25292Regular Expression Denial of Service (ReDoS) in Pillow
A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 1.7% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.7%
- percentile 78%
- Fix
- Named by a source
- CVE published 19 Mar 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.7% (+2) · Network attack vector (+10) · No privileges required (+5)
Immediate actions
- pillow (PyPI): upgrade to 8.1.1 or later on your release line.
- Commit / pull request: https://github.com/python-pillow/Pillow/commit/3bce145966374dd39ce58a6fc0083f8d1890719c
- Commit / pull request: https://github.com/python-pillow/Pillow/commit/521dab94c7ab72b037bd9a83e9663401e0fd2cee
- Commit / pull request: https://github.com/python-pillow/Pillow/commit/6207b44ab1ff4a91d8ddc7579619876d0bb191a4
Who should check
pillow (PyPI) pkg:pypi/pillow
- Affected>= 5.1.0, < 8.1.1Fixed in8.1.1OSV (GHSA-9hx2-hgq2-2g4f)
- Affected< 8.1.1Fixed in8.1.1OSV (PYSEC-2021-38)
Confirmed facts
- CVSS
- 6.5 MEDIUM (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-9hx2-hgq2-2g4f)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-400
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.1.1. The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking regex.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-25292
- commit / pull requesthttps://github.com/python-pillow/Pillow/commit/3bce145966374dd39ce58a6fc0083f8d1890719c
- commit / pull requesthttps://github.com/python-pillow/Pillow/commit/521dab94c7ab72b037bd9a83e9663401e0fd2cee
- commit / pull requesthttps://github.com/python-pillow/Pillow/commit/6207b44ab1ff4a91d8ddc7579619876d0bb191a4
- advisoryhttps://github.com/advisories/GHSA-9hx2-hgq2-2g4f
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-38.yaml
- otherhttps://github.com/python-pillow/Pillow
- otherhttps://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
- otherhttps://security.gentoo.org/glsa/202107-33
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-9hx2-hgq2-2g4f (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2021-38 (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 23 min ago · osv 23 min ago · nvd 84 min ago · epss 23 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-pillow-2021-25292, GHSA-9hx2-hgq2-2g4f, PYSEC-2021-38