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

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-pillow8.4.0-r0ALPINE-CVE-2021-23437
Alpine:v3.21py3-pillow8.4.0-r0ALPINE-CVE-2021-23437
Alpine:v3.22py3-pillow8.4.0-r0ALPINE-CVE-2021-23437
Alpine:v3.23py3-pillow8.4.0-r0ALPINE-CVE-2021-23437
Alpine:v3.24py3-pillow8.4.0-r0ALPINE-CVE-2021-23437
Debian:12pillow8.3.2-1DEBIAN-CVE-2021-23437
Debian:13pillow8.3.2-1DEBIAN-CVE-2021-23437
Debian:14pillow8.3.2-1DEBIAN-CVE-2021-23437
PyPIpillow8.3.2GHSA-98vv-pw6r-q6q4
PyPIpillow8.3.2PYSEC-2021-317
Ubuntu:22.04:LTSpillow9.0.0-1UBUNTU-CVE-2021-23437

Affected products (as reported)

VendorProductVersions
n/a Pillow 0 – before unspecifiedunspecified – before 8.3.2

References