CVE-2021-34552
CRITICAL 9.8CVSS 3.1Buffer Overflow in Pillow
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.
- Published
- 13 Jul 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-120
- Also known as
- BIT-pillow-2021-34552GHSA-7534-mm45-c74vPYSEC-2021-331
- Sources
- NVDJSONOSV GHSA-7534-mm45-c74vJSONOSV PYSEC-2021-331JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
>= 1.0, <= 1.1.7 | |
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
>= 1.2, <= 8.2.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| OSV | PyPI | pillow | < 8.3.0 | 8.3.0 |
References
- https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ/
- https://pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html#buffer-overflow · Release Notes, Vendor Advisory, WEB
- https://pillow.readthedocs.io/en/stable/releasenotes/index.html · Release Notes, Vendor Advisory, WEB
- https://security.gentoo.org/glsa/202211-10 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-34552 · ADVISORY
- https://github.com/python-pillow/Pillow/pull/5567 · WEB
- https://github.com/python-pillow/Pillow/commit/31c473898c29d1b7cb6555ce67d9503a4906b83f · WEB
- https://github.com/advisories/GHSA-7534-mm45-c74v · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-331.yaml · WEB
- https://github.com/python-pillow/Pillow · PACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 13 Jul 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Oct 2021)