CVE-2021-34552
JSON

9.8critical

Buffer Overflow in Pillow

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
2.68% (higher than 86% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-7534-mm45-c74vBIT-PILLOW-2021-34552PYSEC-2021-331

Description

Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert function to trigger a buffer overflow in Convert.c.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
pillow (PyPI)before 8.3.0GitHub Advisory Database, PyPA Advisory Database
python pillowfrom 1.0 up to 1.1.7, from 1.2 up to 8.2.0NVD
debian debian_linux9.0NVD
fedoraproject fedora33, 34NVD
pillow (Bitnami)from 1.0.0 before 1.1.8, from 1.2.0 before 8.2.1Bitnami Vulnerability Database

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasecritical rating

Classification

What each source says

CVE List

Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert function to trigger a buffer overflow in Convert.c.

NVD (es)

Pillow versiones hasta 8.2.0 y PIL (también se conoce como Python Imaging Library) versiones hasta 1.1.7, permiten a un atacante pasar parámetros controlados directamente a una función de conversión para desencadenar un desbordamiento de búfer en el archivo Convert.c

References

https://pillow.readthedocs.io/en/stable/releasenotes/index.htmladvisory, release-notes, vendor-advisory, web
https://pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html#buffer-overflowadvisory, release-notes, vendor-advisory, web
https://lists.debian.org/debian-lts-announce/2021/07/msg00018.htmladvisory, mailing-list, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ/vendor-advisory, web
https://security.gentoo.org/glsa/202211-10advisory, third-party-advisory, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-34552advisory, web
https://github.com/python-pillow/Pillow/pull/5567web
https://github.com/python-pillow/Pillow/commit/31c473898c29d1b7cb6555ce67d9503a4906b83fweb
https://github.com/advisories/GHSA-7534-mm45-c74vadvisory
https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-331.yamlweb
https://github.com/python-pillow/Pillowpackage

Sources

SourceRecordLicence
CVE ListCVE-2021-34552 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-7534-mm45-c74v changed 2024-10-09CC-BY-4.0
NVDCVE-2021-34552 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-331 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-PILLOW-2021-34552 changed 2026-09-08Apache-2.0