CVE-2021-34552
python-pillow: Buffer overflow in image convert function
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-120
Affected packages · 2
Operating systems · 24 fixes
Red Hat 2 releases · 2 packages
eol 1
fixed 1
python-pillow
python3-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | python-pillow +5 | eol | — |
| 8 | python3-pillow | 0:5.1.1-16.el8 | RHSA-2021:4149 |
SUSE Linux Enterprise 1 release · 1 package
fixed 1
python3-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.6 | python3-pillow | 7.2.0-150300.3.15.1 | SUSE-SU-2024:1673-2 |
alma 1 release · 1 package
fixed 1
python3-pillow
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow | 5.1.1-16.el8 |
alpine 4 releases · 1 package
fixed 4
py3-pillow
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | py3-pillow | 8.3.0-r0 |
| 3.23 | py3-pillow | 8.3.0-r0 |
| 3.24 | py3-pillow | 8.3.0-r0 |
| edge | py3-pillow | 8.3.0-r0 |
amazon linux 1 release · 1 package
fixed 1
python-pillow-debuginfo
| Release | Package | Fixed in |
|---|---|---|
| 2023 | python-pillow-debuginfo +6 | 9.4.0-2.amzn2023.0.1 |
debian 6 releases · 1 package
fixed 6
pillow
| Release | Package | Fixed in |
|---|---|---|
| 10 | pillow | 5.4.1-2+deb10u3 |
| 11 | pillow | 8.1.2+dfsg-0.3 |
| 12 | pillow | 8.1.2+dfsg-0.3 |
| 13 | pillow | 8.1.2+dfsg-0.3 |
| 14 | pillow | 8.1.2+dfsg-0.3 |
| 9 | pillow | 4.0.0-4+deb9u3 |
echo 1 release · 1 package
fixed 1
pillow
| Release | Package | Fixed in |
|---|---|---|
| pillow | 8.1.2+dfsg-0.3 |
openSUSE 1 release · 3 packages
fixed 3
python310-pillow
python313-pillow
python36-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python310-pillow +5 | 10.3.0-1.1 | openSUSE-SU-2024:13827-1 |
| Tumbleweed | python313-pillow +3 | 12.3.0-1.1 | openSUSE-SU-2026:11261-1 |
| Tumbleweed | python36-pillow +5 | 8.3.2-1.2 | openSUSE-SU-2024:11209-1 |
rocky 1 release · 1 package
fixed 1
python3-pillow
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow | 5.1.1-16.el8 |
ubuntu 4 releases · 1 package
fixed 4
pillow
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | pillow | 5.1.0-1ubuntu0.7 |
| 18.04-ESM | pillow | 5.1.0-1ubuntu0.7 |
| 20.04 | pillow | 7.0.0-4ubuntu0.5 |
| 20.04-ESM | pillow | 7.0.0-4ubuntu0.5 |
References
- access.redhat.com https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-34552.json
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-34552
- github.com https://github.com/advisories/GHSA-7534-mm45-c74v
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-331.yaml
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/commit/31c473898c29d1b7cb6555ce67d9503a4906b83f
- github.com https://github.com/python-pillow/Pillow/pull/5567
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ/
Show all 19 references
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-34552
- pillow.readthedocs.io https://pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html#buffer-overflow
- pillow.readthedocs.io https://pillow.readthedocs.io/en/stable/releasenotes/index.html
- security.gentoo.org https://security.gentoo.org/glsa/202211-10
- ubuntu.com https://ubuntu.com/security/notices/USN-5227-1
- ubuntu.com https://ubuntu.com/security/notices/USN-5227-2
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-34552
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.