CVE-2021-27922
Python vulnerability analysis and mitigation

Overview

CVE-2021-27922 affects Pillow versions before 8.1.1, a Python image processing library. The vulnerability was discovered and disclosed in March 2021, where attackers could cause a denial of service through memory consumption. The issue specifically occurs because the reported size of a contained image is not properly checked for an ICNS container, which could lead to very large memory allocation attempts (NVD).

Technical details

The vulnerability has been assigned a CVSS v3.1 Base Score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The technical root cause stems from improper input validation (CWE-20) where the software fails to properly validate the size of contained images in ICNS containers before attempting memory allocation (NVD).

Impact

When exploited, this vulnerability can lead to denial of service conditions through excessive memory consumption. The impact is particularly severe as it affects the availability of systems using the Pillow library to process ICNS images, potentially causing application crashes or system resource exhaustion (NVD).

Exploitability

The vulnerability is remotely exploitable and requires low attack complexity with no privileges or user interaction needed, as indicated by the CVSS vector string. An attacker can trigger the vulnerability by providing specially crafted ICNS images that exploit the improper size validation (NVD).

Mitigation and workarounds

The vulnerability was fixed in Pillow version 8.1.1. Users and administrators are strongly advised to upgrade to this version or later. Multiple distributions have released security updates, including Fedora and Gentoo. Fedora released updates for versions 32, 33, and 34, while Gentoo addressed this in version 8.2.0 (Gentoo Advisory, Pillow Release).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61539CRITICAL10
  • Python logoPython
  • xinference
NoYesAug 21, 2026
CVE-2026-49360HIGH7.8
  • Python logoPython
  • recce
NoYesAug 21, 2026
CVE-2026-68508HIGH7.8
  • Python logoPython
  • hydra-core
NoYesAug 21, 2026
CVE-2026-43980MEDIUM6.3
  • Python logoPython
  • malla
NoNoAug 21, 2026
CVE-2026-55468MEDIUM4.3
  • Python logoPython
  • wagtail
NoYesAug 24, 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