MediumFix available
py3-pillow — security advisory
An issue was discovered in Pillow before 8.1.1. The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking regex.
- Products
- py3-pillow
- Affected versions
- Not specified
- Fixed versions
- 8.1.2-r0
- CVEs
- CVE-2021-25292
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 22:03 UTC · Revision 1
Source evidence
An issue was discovered in Pillow before 8.1.1. The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking regex.
osv:ALPINE-CVE-2021-25292
py3-pillow
Fixed versions: 8.1.2-r0
py3-pillow
Fixed versions: 8.1.2-r0
Complete source record
{
"id": "16a2770db8d67205caefc53b8495e842019d5a861c970c38f75705534b653124",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2021-25292",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-CVE-2021-25292",
"summary": "An issue was discovered in Pillow before 8.1.1. The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking regex.",
"evidence": "osv:ALPINE-CVE-2021-25292",
"products": [
{
"name": {
"value": "py3-pillow",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "8.1.2-r0",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-pillow",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "8.1.2-r0",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "ALPINE-CVE-2021-25292",
"aliases": [
"ALPINE-CVE-2021-25292"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "8.1.2-r0"
}
]
}
],
"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-25292.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "8.1.2-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-25292.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-23T17:17:56.162526589Z",
"provider": "osv",
"upstream": [
"CVE-2021-25292"
],
"references": [
"https://security.alpinelinux.org/vuln/CVE-2021-25292"
]
},
"related_cves": [
{
"value": "CVE-2021-25292",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 415347,
"published_at": "2021-03-19T04:15:13.59+00:00"
}