cve.bz

CVE-2021-23437 Out-of-bounds Read

7.5 highExploit referenceEPSS 3.2%Fix available

High (7.5). EPSS 3.2% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 8.3.2.

On this page
The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.2% (unchanged from 3.2% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-23437 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23437?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23437?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-23437 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pillowfrom 5.2.0 before 8.3.2
fedoraproject:fedora33
fedoraproject:fedora34

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-98vv-pw6r-q6q4PyPIpillow>=5.2.0 <8.3.28.3.2
PYSEC-2021-317PyPIpillow<8.3.28.3.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10pillow5.4.1-2+deb10u5DLA-3768-1
Debian11pillow8.1.2+dfsg-0.3+deb11u3DLA-4462-1
Debian12, 13, 14pillow8.3.2-1DEBIAN-CVE-2021-23437
Ubuntu18.04:LTSpillow5.1.0-1ubuntu0.7UBUNTU-CVE-2021-23437 USN-5227-1
Ubuntu20.04:LTSpillow7.0.0-4ubuntu0.5UBUNTU-CVE-2021-23437 USN-5227-1
Ubuntu22.04:LTSpillow9.0.0-1UBUNTU-CVE-2021-23437
UbuntuPro:14.04:LTSpillow2.3.0-1ubuntu3.4+esm3UBUNTU-CVE-2021-23437 USN-5227-2
UbuntuPro:16.04:LTSpillow3.1.2-0ubuntu1.6+esm1UBUNTU-CVE-2021-23437 USN-5227-2
UbuntuPro:20.04:LTSpillow-python2no fix listedUBUNTU-CVE-2021-23437
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-Pillow4.2.1-3.20.2SUSE-SU-2021:3234-1
SUSELinux Enterprise Module for Package Hub 15 SP6python-Pillow7.2.0-150300.3.15.1SUSE-SU-2024:1673-2
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-Pillow5.2.0-3.14.1SUSE-SU-2021:3235-1
openSUSELeap 15.5python-Pillow7.2.0-150300.3.15.1SUSE-SU-2024:1673-1
openSUSETumbleweedpython-Pillow10.3.0-1.1openSUSE-SU-2024:13827-1
openSUSETumbleweedpython-Pillow12.3.0-1.1openSUSE-SU-2026:11261-1
openSUSETumbleweedpython-Pillow8.3.2-1.2openSUSE-SU-2024:11209-1
Alpinev3.11py-pillow6.2.1-r1ALPINE-CVE-2021-23437
Alpinev3.12py3-pillow7.1.2-r2ALPINE-CVE-2021-23437
Alpinev3.13py3-pillow7.2.0-r2ALPINE-CVE-2021-23437
Alpinev3.14py3-pillow8.2.0-r1ALPINE-CVE-2021-23437
Alpinev3.15, v3.16, v3.17 and 7 morepy3-pillow8.4.0-r0ALPINE-CVE-2021-23437

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7python-pillowNot affected
Red Hat Enterprise Linux 8python-pillowNot affected
Red Hat Quay 3quay/quay-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-23437.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON