# CVE-2021-27923

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-03-03 · Modified: 2025-08-15
- Aliases: ALPINE-CVE-2021-27923, GHSA-95q3-8gr9-gm8w, BIT-pillow-2021-27923, PYSEC-2021-42, UBUNTU-CVE-2021-27923, DEBIAN-CVE-2021-27923
- Record: https://cvemate.com/vulnerability/CVE-2021-27923 · JSON: https://cvemate.com/vulnerability/CVE-2021-27923/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 3.082%, percentile 88.108%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine py3-pillow (Alpine Linux): \< 8.1.2-r0
- debian pillow (Debian): \< 8.1.2-1
- ubuntu pillow (Ubuntu): \< 3.1.2-0ubuntu1.6 \| \< 5.1.0-1ubuntu0.5 \| \< 7.0.0-4ubuntu0.3
- ubuntu pillow-python2 (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 32 \| 33 \| 34
- PyPI pillow (PyPI): \< 8.1.2 \| \< 8.1.1
- python pillow: \< 8.1.1

## References (first 20 of 25)

- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/>
- <https://security.gentoo.org/glsa/202107-33>
- <https://pillow.readthedocs.io/en/stable/releasenotes/8.1.2.html>
- <https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/>
- <https://security.alpinelinux.org/vuln/CVE-2021-27923>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27923>
- <https://github.com/python-pillow/Pillow/commit/756fff33128a0b643d10518a26ad04b726dd8973>
- <https://github.com/advisories/GHSA-95q3-8gr9-gm8w>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-42.yaml>
- <https://github.com/python-pillow/Pillow>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML>

---

Data as of 2026-12-05T06:22:29.439Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
