Advisory

GHSA-3wvg-mj6g-m9cv

Also known as: BIT-pillow-2021-27922, CVE-2021-27922, PYSEC-2021-41

Summary

Pillow Uncontrolled Resource Consumption

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-03-18 19:55 UTC
Modified
2025-08-15 14:25 UTC

Affected packages and fixes

pillow

PyPI · All systems

Affected

  • introduced 0, fixed 8.1.2 (ecosystem)

Fixed versions

8.1.2

Fix

  • Fixed version 8.1.2
    pip install --upgrade pillow==8.1.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences