CVE-2021-23437 Regular Expression Denial of Service (ReDoS)
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.
| Package | Affected | Fixed in |
|---|---|---|
pillow Bitnami | From 5.2.0 | 8.3.2 |
pillow PyPI | All versions | 8.3.2 |
pillow PyPI | From 5.2.0 | 8.3.2 |
pillow PyPI | From 5.2.0 | 8.3.2 |
Linux distribution packages (5)
python-Pillow SUSE:HPE Helion OpenStack 8 | All versions | 4.2.1-3.20.2 |
python-Pillow SUSE:OpenStack Cloud 8 | All versions | 4.2.1-3.20.2 |
python-Pillow SUSE:OpenStack Cloud 9 | All versions | 5.2.0-3.14.1 |
python-Pillow SUSE:OpenStack Cloud Crowbar 8 | All versions | 4.2.1-3.20.2 |
python-Pillow SUSE:OpenStack Cloud Crowbar 9 | All versions | 5.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.
Other vulnerabilities in Fedoraproject Fedora
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.