7.5high
Pillow Denial of Service by Uncontrolled Resource Consumption
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 3.21% (higher than 88% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-f4w8-cv6p-x6r5BIT-PILLOW-2021-27921PYSEC-2021-40
Description
Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container, and thus an attempted memory allocation can be very large.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| pillow (PyPI) | before 8.1.2, before 8.1.1 | GitHub Advisory Database, PyPA Advisory Database |
| python pillow | before 8.1.1 | NVD |
| fedoraproject fedora | 32, 33, 34 | NVD |
| pillow (Bitnami) | before 8.1.1 | Bitnami Vulnerability Database |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container, and thus an attempted memory allocation can be very large.
NVD (es)
Pillow versiones anteriores a 8.1.1, permite a atacantes causar una denegación de servicio (consumo de memoria) porque el tamaño informado de una imagen contenida no es comprobado apropiadamente para un contenedor BLP y, por lo tanto, un intento de asignación de memoria puede ser muy grande
PyPA Advisory Database
Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container, and thus an attempted memory allocation can be very large.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-27921 changed 2025-08-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f4w8-cv6p-x6r5 changed 2025-08-15 | CC-BY-4.0 |
| NVD | CVE-2021-27921 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-40 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-PILLOW-2021-27921 changed 2026-09-08 | Apache-2.0 |