Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.3
CVE-2021-34552: Pillow library can let attackers run code
CVE-2021-34552 · published today
Summary
The Python Pillow image library used in many Linux distributions and Python projects can be tricked into executing malicious code when it processes specially crafted image files. This risk is fixed in newer releases of Pillow. Install the latest Pillow version from your package manager or PyPI to stay safe.
What to do
- Update jeffrey 'alex' clark pillow to version 8.3.0.
- Update pillow to version 8.0.1+aikido.1.
- Update pillow to version 8.1.2+aikido.1.
- Update pillow to version 8.0.1+aikido.2.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| pip | jeffrey 'alex' clark | pillow |
< 8.3.0 Fix: upgrade to 8.3.0
|
| – | python | pillow |
>= 1.0, <= 1.1.7 >= 1.2, <= 8.2.0 cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
| – | debian | debian_linux |
9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
| – | fedoraproject | fedora |
33 34 cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
| Root:PyPI | – | pillow |
< 8.0.1+aikido.1 < 8.1.2+aikido.1 < 8.0.1+aikido.2 Fix: upgrade to 8.0.1+aikido.1
|
Original advisory text
CVE-2021-34552 in pillow - Patched by Root
Root has patched CVE-2021-34552 in the pillow package for Root:PyPI. Multiple fixed versions available.
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/31c473898c29d1b7cb6555ce67d9503a4...
- https://github.com/advisories/GHSA-7534-mm45-c74v
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-331....
- https://lists.fedoraproject.org/archives/list/[email protected]...
- https://lists.fedoraproject.org/archives/list/[email protected]...
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro...
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro...
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker full control (estimated)
Type
CWE-120Classic Buffer Overflow
Timeline
Published27 Oct 2026
Updated27 Oct 2026
First seen6 Mar 2026
Track software like this
Free during beta