| Name | CVE-2021-27921 | 
| 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 a BLP container, and thus an attempted memory allocation can be very large. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| pillow (PTS) | bullseye (security), bullseye | 8.1.2+dfsg-0.3+deb11u2 | fixed | 
|  | bookworm, bookworm (security) | 9.4.0-1.1+deb12u1 | fixed | 
|  | trixie | 11.1.0-5 | fixed | 
|  | forky | 11.3.0-1 | fixed | 
|  | sid | 12.0.0-1 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|
| pillow | source | stretch | (not affected) |  |  |  | 
| pillow | source | buster | 5.4.1-2+deb10u3 |  |  |  | 
| pillow | source | (unstable) | 8.1.2-1 |  |  |  | 
Notes
[stretch] - pillow <not-affected> (Vulnerable code introduced later)
https://pillow.readthedocs.io/en/stable/releasenotes/8.1.2.html
https://github.com/python-pillow/Pillow/commit/756fff33128a0b643d10518a26ad04b726dd8973
Introduced in https://github.com/python-pillow/Pillow/commit/adaa70357662a11cd4b7c0beddaad4e92164c5d9 (5.1.0)