CVE-2021-23437 Regular Expression Denial of Service (ReDoS)

High 7.5 Published Updated

Attackers can cause a denial of service in Pillow via a Regular Expression Denial of Service vulnerability in the getrgb function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-23437?

CVE-2021-23437 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 3 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-125

Which versions are affected by CVE-2021-23437?

4 open source packages ship an affected version, including pillow. It affects 2 products.

PackageAffectedFixed in
pillow BitnamiFrom 5.2.08.3.2
pillow PyPIAll versions8.3.2
pillow PyPIFrom 5.2.08.3.2
pillow PyPIFrom 5.2.08.3.2
Linux distribution packages (5)
python-Pillow SUSE:HPE Helion OpenStack 8All versions4.2.1-3.20.2
python-Pillow SUSE:OpenStack Cloud 8All versions4.2.1-3.20.2
python-Pillow SUSE:OpenStack Cloud 9All versions5.2.0-3.14.1
python-Pillow SUSE:OpenStack Cloud Crowbar 8All versions4.2.1-3.20.2
python-Pillow SUSE:OpenStack Cloud Crowbar 9All versions5.2.0-3.14.1

Products include Fedoraproject Fedora, Python Pillow.

How do I fix CVE-2021-23437?

Upgrade pillow to 8.3.2 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-23437 being exploited?

There is no known exploitation of CVE-2021-23437 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2021-23437, BIT-pillow-2021-23437, DEBIAN-CVE-2021-23437, GHSA-98vv-pw6r-q6q4, MGASA-2021-0448, OESA-2021-1383 and 6 more.

Is CVE-2021-23437 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free