CVE-2021-34552
Python vulnerability analysis and mitigation

Overview

CVE-2021-34552 is a buffer overflow vulnerability discovered in Pillow (Python Imaging Library) through version 8.2.0 and PIL through version 1.1.7. The vulnerability was disclosed on July 13, 2021, affecting the image processing functionality in these widely-used Python libraries (CVE Mitre).

Technical details

The vulnerability exists in the Convert.c file where an attacker can pass controlled parameters directly into a convert function, triggering a buffer overflow. This issue has been present in PIL since version 1.1.4 and Pillow since version 1.0 (Pillow Docs).

Impact

The vulnerability could potentially allow an attacker to execute arbitrary code through buffer overflow exploitation in the image conversion functionality (Red Hat Portal).

Exploitability

The vulnerability requires an attacker to have the ability to pass controlled parameters to the convert function in the affected software. No public exploits were identified in the wild at the time of disclosure (Debian Security).

Mitigation and workarounds

The vulnerability was patched in Pillow version 8.3.0. Users are advised to upgrade to this version or later. Various Linux distributions have also released security updates, including Debian (version 4.0.0-4+deb9u3), Fedora (versions 7.2.0-7.fc33 and 8.1.2-3.fc34), and others (Debian LTS, Fedora Update).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Alpine

Fixed

edge

py3-pillow: 8.3.0-r0

Fixed

v3.18

py3-pillow: 8.3.0-r0

Fixed

v3.19

py3-pillow: 8.3.0-r0

Fixed

v3.20

py3-pillow: 8.3.0-r0

Fixed

v3.21

py3-pillow: 8.3.0-r0

Fixed

v3.22

py3-pillow: 8.3.0-r0

Fixed

v3.23

py3-pillow: 8.3.0-r0

Fixed

Arch Linux

Fixed

rolling

python-pillow: 8.3.0-1

Fixed

SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66455CRITICAL9.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-63374CRITICAL9.3
  • Python logoPython
  • airflow-3
NoYesSep 18, 2026
CVE-2026-59163CRITICAL9.1
  • Python logoPython
  • mnemosyne-memory
NoYesSep 18, 2026
CVE-2026-33625HIGH8.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-64847MEDIUM6.8
  • Python logoPython
  • py3-anyio
NoYesSep 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management