High
Security advisory
The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23437
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:40 UTC · Revision 1
Source evidence
The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.
osv:CVE-2021-23437
Complete source record
{
"id": "7f5d8f48e3dfe29ddf3e1f4c2c348259b91220cfc78dbd6c1877ddcbbd025f98",
"url": "https://osv.dev/vulnerability/CVE-2021-23437",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-23437",
"summary": "The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.",
"evidence": "osv:CVE-2021-23437",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-23437",
"aliases": [
"BIT-pillow-2021-23437",
"CVE-2021-23437",
"GHSA-98vv-pw6r-q6q4",
"PYSEC-2021-317",
"SNYK-PYTHON-PILLOW-1319443"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/python-pillow/pillow",
"type": "GIT",
"events": [
{
"introduced": "c28bf86b7e752a9257a0d4451ca878c1385db15c"
},
{
"fixed": "8013f130a5077b238a4346b73e149432b180a8ea"
},
{
"fixed": "9e08eb8f78fdfd2f476e1b20b7cf38683754866b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.2.0"
},
{
"fixed": "8.3.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "9e08eb8f78fdfd2f476e1b20b7cf38683754866b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"8.3.1",
"8.3.0",
"8.2.0",
"8.1.0",
"8.0.0",
"7.2.0",
"7.1.0",
"7.0.0",
"6.2.0",
"6.1.0",
"6.0.0",
"5.4.0",
"5.3.0",
"5.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23437.json"
}
}
],
"modified": "2026-10-20T10:54:32.198880201Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RNSG6VFXTAROGF7ACYLMAZNQV4EJ6I2C/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VKRCL7KKAKOXCVD7M6WC5OKFGL4L3SJT/",
"https://pillow.readthedocs.io/en/stable/releasenotes/8.3.2.html",
"https://security.gentoo.org/glsa/202211-10",
"https://github.com/python-pillow/Pillow/commit/9e08eb8f78fdfd2f476e1b20b7cf38683754866b",
"https://snyk.io/vuln/SNYK-PYTHON-PILLOW-1319443"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "33"
},
{
"last_affected": "33"
},
{
"introduced": "34"
},
{
"last_affected": "34"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-23437",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385505,
"published_at": "2021-09-03T16:15:08.317+00:00"
}