{"id":"CVE-2021-27923","published":"2021-03-03T08:41:40Z","modified":"2025-08-15T04:40:08Z","title":"Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a…","vendor":null,"product":null,"tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03045,"percentile":0.87853,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202107-33","tags":["vendor-advisory"]},{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.2.html","tags":[]},{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":17.57}]},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<8.1.2","<8.1.1"],"patched":["8.1.2","8.1.1"],"from":["GHSA-95q3-8gr9-gm8w","PYSEC-2021-42"],"provenance":"source"}],"summary":{"text":"The flaw is in the Pillow imaging library, prior to version 8.1.2, in its handling of ICO container files, where the reported size of a contained image is not properly validated before memory is allocated for it. An attacker who can get the affected software to process a crafted ICO file can trigger a very large memory allocation, causing a denial of service through memory consumption.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:30Z"},"euvd":{"id":"EUVD-2021-0179","exploited":false,"provenance":"source"}}