{"id":"CVE-2021-34552","aliases":["BIT-pillow-2021-34552","GHSA-7534-mm45-c74v","PYSEC-2021-331"],"url":"https://o3.security/vulnerability/CVE-2021-34552","summary":"Buffer Overflow in Pillow","details":"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":"2021-07-13T17:15:09.400Z","modified":"2026-10-24T10:30:59.433830441Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.02677,"percentile":0.86544,"asOf":"2026-11-26"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"pillow","fixedVersion":"8.3.0"}],"fix":{"url":"https://github.com/python-pillow/Pillow/pull/5567","label":"python-pillow/Pillow#5567"},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ/"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html"},{"type":"ADVISORY","url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html#buffer-overflow"},{"type":"ADVISORY","url":"https://pillow.readthedocs.io/en/stable/releasenotes/index.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202211-10"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-34552"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/pull/5567"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/31c473898c29d1b7cb6555ce67d9503a4906b83f"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7534-mm45-c74v"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-331.yaml"},{"type":"PACKAGE","url":"https://github.com/python-pillow/Pillow"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-24T10:30:59.433830441Z"}}