# CVE-2021-27922: Pillow Uncontrolled Resource Consumption

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.91%, higher than 92% of CVEs (2026-12-01)
- Published: 2021-03-03T08:41:50.000Z
- Modified: 2026-09-08T08:48:18.511Z
- Also known as: GHSA-3wvg-mj6g-m9cv, BIT-PILLOW-2021-27922, PYSEC-2021-41
- Weaknesses: CWE-20, CWE-400
- Assigned by: mitre

## 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 an ICNS container, and thus an attempted memory allocation can be very large.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pillow (PyPI): before 8.1.2; before 8.1.1
- python pillow: before 8.1.1
- fedoraproject fedora: 32; 33; 34
- pillow (Bitnami): before 8.1.1

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/> (vendor-advisory, web)
- <https://security.gentoo.org/glsa/202107-33> (advisory, third-party-advisory, vendor-advisory, web)
- <https://pillow.readthedocs.io/en/stable/releasenotes/8.1.2.html> (web)
- <https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html> (advisory, release-notes, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27922> (advisory, web)
- <https://github.com/python-pillow/Pillow/commit/756fff33128a0b643d10518a26ad04b726dd8973> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-41.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ> (web)
- <https://github.com/advisories/GHSA-3wvg-mj6g-m9cv> (advisory)

## Sources

- CVE List: [CVE-2021-27922](https://www.cve.org/CVERecord?id=CVE-2021-27922), CVE Terms of Use, modified 2025-08-15
- GitHub Advisory Database: [GHSA-3wvg-mj6g-m9cv](https://github.com/advisories/GHSA-3wvg-mj6g-m9cv), CC-BY-4.0, modified 2025-08-15
- NVD: [CVE-2021-27922](https://nvd.nist.gov/vuln/detail/CVE-2021-27922), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-41](https://osv.dev/vulnerability/PYSEC-2021-41), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-PILLOW-2021-27922](https://osv.dev/vulnerability/BIT-PILLOW-2021-27922), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-27922 · Whole record: https://cve.day/CVE-2021-27922.json · Rebuilt by cve.day 2026-11-25T22:58:00.122Z
