Vulnerability · Published Sep 3, 2021 · Assigned by snyk
CVE-2021-23437Regular Expression Denial of Service (ReDoS)
High 7.5
In plain English
A high-severity security flaw in Pillow. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)3.2%top 11.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-pillow | 8.4.0-r0 | ALPINE-CVE-2021-23437 |
| Alpine:v3.21 | py3-pillow | 8.4.0-r0 | ALPINE-CVE-2021-23437 |
| Alpine:v3.22 | py3-pillow | 8.4.0-r0 | ALPINE-CVE-2021-23437 |
| Alpine:v3.23 | py3-pillow | 8.4.0-r0 | ALPINE-CVE-2021-23437 |
| Alpine:v3.24 | py3-pillow | 8.4.0-r0 | ALPINE-CVE-2021-23437 |
| Debian:12 | pillow | 8.3.2-1 | DEBIAN-CVE-2021-23437 |
| Debian:13 | pillow | 8.3.2-1 | DEBIAN-CVE-2021-23437 |
| Debian:14 | pillow | 8.3.2-1 | DEBIAN-CVE-2021-23437 |
| PyPI | pillow | 8.3.2 | GHSA-98vv-pw6r-q6q4 |
| PyPI | pillow | 8.3.2 | PYSEC-2021-317 |
| Ubuntu:22.04:LTS | pillow | 9.0.0-1 | UBUNTU-CVE-2021-23437 |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-1319443
- https://pillow.readthedocs.io/en/stable/releasenotes/8.3.2.html
- https://github.com/python-pillow/Pillow/commit/9e08eb8f78fdfd2f476e1b20b7cf38683754866b
- FEDORA-2021-9f020cf155 vendor-advisory
- FEDORA-2021-cbfaefb390 vendor-advisory
- GLSA-202211-10 vendor-advisory
- [debian-lts-announce] 20240322 [SECURITY] [DLA 3768-1] pillow security update mailing-list