CVE-2021-27922

python-pillow: Excessive memory allocation in ICNS image reader

Published Mar 3, 2021 CVSS 3.1 · 7.5 High EPSS 4.9% KEV · Not listed
Description
Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-0178 Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large.
Github GHSA Github GHSA GHSA-3wvg-mj6g-m9cv Pillow Uncontrolled Resource Consumption
Ubuntu USN Ubuntu USN USN-4763-1 Pillow vulnerabilities
History
Type Values Removed Values Added
Description Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large. Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 15, 2025, 4:38 AM
Reserved
Mar 3, 2021, 12:00 AM
Status
Modified
Published
Mar 3, 2021, 9:15 AM
Modified
Jun 17, 2026, 3:45 AM
Severity
Moderate
Public date
Mar 3, 2021, 12:00 AM