Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker…
Priority MEDIUM 48CWE-120Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-120 and the CVSS impact.
Summary
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.
Why it matters now
EPSS 0.03188 88th percentileScored 2026-11-07
Fix Partial pillow (PyPI): 8.3.0Red Hat: 2 advisoriesRed Hat: 2 fixed, 1 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | pillow (PyPI) | before 8.3.0 | 8.3.0 | Patch available | GHSA-7534-mm45-c74v |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- pillow (PyPI) Vendor— Affected before 8.3.0 Fixed in 8.3.0 Patch available GHSA-7534-mm45-c74v
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* | 1.0 – 1.1.7; 1.2 – 8.2.0 | Vulnerable | python-pillow |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* | 33 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* Versions 1.0 – 1.1.7; 1.2 – 8.2.0 Vulnerable ·python-pillow
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* Versions 33 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
Remediation
- Fix · GHSA-7534-mm45-c74v pillow (PyPI) Fixed in 8.3.0 Advisory →
Red Hat 2 advisories
- RHSA-2021:4149 Released 2021-11-09 · Red Hat rating Moderatepython-pillow security update
- Red Hat Enterprise Linux AppStream (v. 8) python-pillow-5.1.1-16.el8, python3-pillow-5.1.1-16.el8
- RHSA-2021:3917 Released 2021-10-19 · Red Hat rating ImportantRed Hat Quay v3.6.0 security, bug fix and enhancement update
- Quay v3 quay/quay-rhel8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Quay v3 | Fixed | RHSA-2021:3917 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2021:4149 |
Not affected: 1 product
- Quay v3
Timeline
- 2026-10-02 Threatist record created from CVE-2021-34552
- 2026-10-03 Alias added: GHSA-7534-mm45-c74v
References
Advisory 8
- https://pillow.readthedocs.io/en/stable/releasenotes/index.html
- https://pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html#buffer-overflow
- [debian-lts-announce] 20210722 [SECURITY] [DLA 2716-1] pillow security update
- FEDORA-2021-bf01a738f3
- FEDORA-2021-3ec845dc0c
- GLSA-202211-10
- https://nvd.nist.gov/vuln/detail/CVE-2021-34552
- https://github.com/advisories/GHSA-7534-mm45-c74v
Other 6
- https://github.com/python-pillow/Pillow/pull/5567
- https://github.com/python-pillow/Pillow/commit/31c473898c29d1b7cb6555ce67d9503a4906b83f
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-331.yaml
- https://github.com/python-pillow/Pillow
- https://lists.fedoraproject.org/archives/list/[email protected]/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV
- https://lists.fedoraproject.org/archives/list/[email protected]/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ
Sources
- CVE-2021-34552 · CVE Program
- CVE-2021-34552 · NVD
- FIRST EPSS
- GHSA-7534-mm45-c74v · GitHub Advisory Database · CC BY 4.0
- CVE-2021-34552 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences