python-pillow/pillow · Security
Buffer Overflow in Pillow
- GHSA ID
- GHSA-7534-mm45-c74v
- CVE ID
- CVE-2021-34552
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v4
- 9.3 · 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
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.
CWEs
- CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-34552 ↗
- https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html ↗
- https://pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html#buffer-overflow ↗
- https://pillow.readthedocs.io/en/stable/releasenotes/index.html ↗
- https://github.com/python-pillow/Pillow/pull/5567 ↗
- https://security.gentoo.org/glsa/202211-10 ↗
- https://github.com/python-pillow/Pillow/commit/31c473898c29d1b7cb6555ce67d9503a4906b83f ↗
- https://github.com/advisories/GHSA-7534-mm45-c74v ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-331.yaml ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ ↗