HighFix available
py-pillow, py3-pillow — 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
- py-pillow, py3-pillow
- Affected versions
- Not specified
- Fixed versions
- 6.2.1-r1, 7.1.2-r2, 7.2.0-r2, 8.2.0-r1, 8.4.0-r0
- CVEs
- CVE-2021-23437
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 22:02 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:ALPINE-CVE-2021-23437
py-pillow
Fixed versions: 6.2.1-r1
py3-pillow
Fixed versions: 7.1.2-r2
py3-pillow
Fixed versions: 7.2.0-r2
py3-pillow
Fixed versions: 8.2.0-r1
py3-pillow
Fixed versions: 8.4.0-r0
Complete source record
{
"id": "fbffa098414c64185b345b4b67cb7570b2b45ae88dc4fe1e30b00480b3b6bd44",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2021-23437",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-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:ALPINE-CVE-2021-23437",
"products": [
{
"name": {
"value": "py-pillow",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.2.1-r1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-pillow",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.1.2-r2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-pillow",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.2.0-r2",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-pillow",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "8.2.0-r1",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-pillow",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "8.4.0-r0",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "ALPINE-CVE-2021-23437",
"aliases": [
"ALPINE-CVE-2021-23437"
],
"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": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.2.1-r1"
}
]
}
],
"package": {
"name": "py-pillow",
"purl": "pkg:apk/alpine/py-pillow?arch=source",
"ecosystem": "Alpine:v3.11"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23437.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "7.1.2-r2"
}
]
}
],
"package": {
"name": "py3-pillow",
"purl": "pkg:apk/alpine/py3-pillow?arch=source",
"ecosystem": "Alpine:v3.12"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23437.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "7.2.0-r2"
}
]
}
],
"package": {
"name": "py3-pillow",
"purl": "pkg:apk/alpine/py3-pillow?arch=source",
"ecosystem": "Alpine:v3.13"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23437.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "8.2.0-r1"
}
]
}
],
"package": {
"name": "py3-pillow",
"purl": "pkg:apk/alpine/py3-pillow?arch=source",
"ecosystem": "Alpine:v3.14"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23437.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "8.4.0-r0"
}
]
}
],
"package": {
"name": "py3-pillow",
"purl": "pkg:apk/alpine/py3-pillow?arch=source",
"ecosystem": "Alpine:v3.15"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23437.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-23T17:17:56.156993446Z",
"provider": "osv",
"upstream": [
"CVE-2021-23437"
],
"references": [
"https://security.alpinelinux.org/vuln/CVE-2021-23437"
]
},
"related_cves": [
{
"value": "CVE-2021-23437",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 415327,
"published_at": "2021-09-03T16:15:08.317+00:00"
}