VDB
CVE-2021-34552
CVE-2021-34552
PUBLISHED
CVSS 9.800000190734863 CRITICAL
Buffer Overflow in Pillow
Reported by mitre · Published July 13, 2021
pillow is fixed in 8.3.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pillow | PyPI | 8.3.0 |
| python3-pillow | Amazon Linux | 9.4.0-2.amzn2023.0.1 |
| python-pillow-devel | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.4 |
| python-pillow | Arch Linux | 8.3.0-1 |
| python-pillow-sane | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.4 |
| py3-pillow | Alpine | 8.3.0-r0 |
| python-pillow-tk | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.4 |
| pillow | Ubuntu:Pro:14.04:LTS | 2.3.0-1ubuntu3.4+esm3 |
| pillow | Ubuntu:20.04:LTS | 7.0.0-4ubuntu0.5 |
| pillow | python | 8.2.0, 1.1.7 |
| pillow | Ubuntu:Pro:16.04:LTS | 3.1.2-0ubuntu1.6+esm1 |
Risk scores
CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2023 | python3-pillow | 0 |
| amazon:2 | python-pillow-devel | 0 |
| arch | python-pillow | 0 |
| amazon:2 | python-pillow-sane | 0 |
| alpine | py3-pillow | 0 |
| amazon:2 | python-pillow-tk | 0 |
| n/a | n/a | * |
| amazon:2023 | python3-pillow-devel | 0 |
| amazon:2 | python-pillow-doc | 0 |
| PyPI | Pillow | 0 |
| amazon:2 | python-pillow | 0 |
| amazon:2023 | python3-pillow-tk | 0 |
Timeline
- Jul 13, 2021 CVE Published
- Jul 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (6 in total, the first dated here)
- Mar 7, 2026 Security Advisory (11 in total, the first dated here)
- Jul 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-34552
vulnetix vdb fixes CVE-2021-34552
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-34552/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20210722 [SECURITY] [DLA 2716-1] pillow security update mailing-list
- FEDORA-2021-bf01a738f3 vendor-advisory
- FEDORA-2021-3ec845dc0c vendor-advisory
- GLSA-202211-10 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2021-34552 advisory
- https://github.com/advisories/GHSA-7534-mm45-c74v advisory
- https://github.com/python-pillow/Pillow/pull/5567 patch
- https://github.com/python-pillow/Pillow/commit/31c473898c29d1b7cb6555ce67d9503a4906b83f patch
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-331.yaml advisory
- https://github.com/python-pillow/Pillow url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ url