Advisory

GHSA-95q3-8gr9-gm8w

Also known as: BIT-pillow-2021-27923, CVE-2021-27923, PYSEC-2021-42

Summary

Pillow Denial of Service by 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 ICO 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:54 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