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.

PackageEcosystemFixed in
pillowPyPI8.3.0
python3-pillowAmazon Linux9.4.0-2.amzn2023.0.1
python-pillow-develAmazon Linux2.0.0-23.gitd1c6db8.amzn2.0.4
python-pillowArch Linux8.3.0-1
python-pillow-saneAmazon Linux2.0.0-23.gitd1c6db8.amzn2.0.4
py3-pillowAlpine8.3.0-r0
python-pillow-tkAmazon Linux2.0.0-23.gitd1c6db8.amzn2.0.4
pillowUbuntu:Pro:14.04:LTS2.3.0-1ubuntu3.4+esm3
pillowUbuntu:20.04:LTS7.0.0-4ubuntu0.5
pillowpython8.2.0, 1.1.7
pillowUbuntu:Pro:16.04:LTS3.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

VendorProductVersions
n/an/an/a
amazon:2023python3-pillow0
amazon:2python-pillow-devel0
archpython-pillow0
amazon:2python-pillow-sane0
alpinepy3-pillow0
amazon:2python-pillow-tk0
n/an/a*
amazon:2023python3-pillow-devel0
amazon:2python-pillow-doc0
PyPIPillow0
amazon:2python-pillow0
amazon:2023python3-pillow-tk0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›