CVE-2021-25292
6.5medium
Regular Expression Denial of Service (ReDoS) in Pillow
- Severity
- 6.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.73% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-9hx2-hgq2-2g4fBIT-PILLOW-2021-25292PYSEC-2021-38
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| pillow (PyPI) | from 5.1.0 before 8.1.1, before 8.1.1 | GitHub Advisory Database, PyPA Advisory Database |
| python pillow | before 8.1.1 | NVD |
| pillow (Bitnami) | before 8.1.1 | Bitnami Vulnerability Database |
All scores
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
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.
NVD (es)
Se detectó un problema en Pillow versiones anteriores a 8.1.1. El analizador de PDF permite un ataque DoS (ReDoS) de expresión regular por medio de un archivo PDF diseñado debido a una regex de retroceso catastrófica
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25292 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9hx2-hgq2-2g4f changed 2024-10-09 | CC-BY-4.0 |
| NVD | CVE-2021-25292 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-38 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-PILLOW-2021-25292 changed 2026-09-08 | Apache-2.0 |