CVE-2021-25292
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
pillow (PyPI)from 5.1.0 before 8.1.1, before 8.1.1GitHub Advisory Database, PyPA Advisory Database
python pillowbefore 8.1.1NVD
pillow (Bitnami)before 8.1.1Bitnami Vulnerability Database

All scores

GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasemedium 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

SourceRecordLicence
CVE ListCVE-2021-25292 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-9hx2-hgq2-2g4f changed 2024-10-09CC-BY-4.0
NVDCVE-2021-25292 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-38 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-PILLOW-2021-25292 changed 2026-09-08Apache-2.0