7.5high
Pillow Uncontrolled Resource Consumption
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 4.91% (higher than 92% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-3wvg-mj6g-m9cvBIT-PILLOW-2021-27922PYSEC-2021-41
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 an ICNS 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 an ICNS 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 la memoria) porque el tamaño reportado de una imagen contenida no es comprobado apropiadamente para un contenedor ICNS y, por lo tanto, un intento de asignación de la 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 an ICNS container, and thus an attempted memory allocation can be very large.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-27922 changed 2025-08-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3wvg-mj6g-m9cv changed 2025-08-15 | CC-BY-4.0 |
| NVD | CVE-2021-27922 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-41 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-PILLOW-2021-27922 changed 2026-09-08 | Apache-2.0 |