Advisory

GHSA-f4w8-cv6p-x6r5

Also known as: BIT-pillow-2021-27921, CVE-2021-27921, PYSEC-2021-40

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 a BLP 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:26 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