CVE-2021-27922
JSON

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

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasehigh 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

https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/vendor-advisory, web
https://security.gentoo.org/glsa/202107-33advisory, third-party-advisory, vendor-advisory, web
https://pillow.readthedocs.io/en/stable/releasenotes/8.1.2.htmlweb
https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.htmladvisory, release-notes, vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-27922advisory, web
https://github.com/python-pillow/Pillow/commit/756fff33128a0b643d10518a26ad04b726dd8973web
https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-41.yamlweb

Sources

SourceRecordLicence
CVE ListCVE-2021-27922 changed 2025-08-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-3wvg-mj6g-m9cv changed 2025-08-15CC-BY-4.0
NVDCVE-2021-27922 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-41 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-PILLOW-2021-27922 changed 2026-09-08Apache-2.0