CVE-2021-27923
HIGH7.5EPSS 0.43%Pillow Denial of Service by Uncontrolled Resource Consumption
Published: 3/18/2021Modified: 4/28/2026
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 ICO container, and thus an attempted memory allocation can be very large.
Affected packages (5)
- Alpine/py3-pillowfrom 0, < 8.1.2-r0
- Bitnami/pillowfrom 0, < 8.1.1
- Debian/pillowfrom 0, < 8.1.2-1
- PyPI/pillowfrom 0, < 8.1.2
- PyPI/pillowfrom 0, < 8.1.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (22)
- ADVISORYhttps://github.com/advisories/GHSA-95q3-8gr9-gm8w
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-27923
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2021-27923
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-27923
- PATCHhttps://github.com/python-pillow/Pillow
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-42.yaml
- WEBhttps://github.com/python-pillow/Pillow/commit/756fff33128a0b643d10518a26ad04b726dd8973
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/
- WEBhttps://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
- WEBhttps://pillow.readthedocs.io/en/stable/releasenotes/8.1.2.html
- WEBhttps://security.gentoo.org/glsa/202107-33