Vulnerability · Published Mar 3, 2021 · Assigned by mitre
CVE-2021-27921
High 7.5
In plain English
A high-severity security flaw in the python3-pillow package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)3.2%top 11.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | python3-pillow | 5.1.1-16.el8 | ALSA-2021:4149 |
| Alpine:v3.20 | py3-pillow | 8.1.2-r0 | ALPINE-CVE-2021-27921 |
| Alpine:v3.21 | py3-pillow | 8.1.2-r0 | ALPINE-CVE-2021-27921 |
| Alpine:v3.22 | py3-pillow | 8.1.2-r0 | ALPINE-CVE-2021-27921 |
| Alpine:v3.23 | py3-pillow | 8.1.2-r0 | ALPINE-CVE-2021-27921 |
| Alpine:v3.24 | py3-pillow | 8.1.2-r0 | ALPINE-CVE-2021-27921 |
| Debian:12 | pillow | 8.1.2-1 | DEBIAN-CVE-2021-27921 |
| Debian:13 | pillow | 8.1.2-1 | DEBIAN-CVE-2021-27921 |
| Debian:14 | pillow | 8.1.2-1 | DEBIAN-CVE-2021-27921 |
| PyPI | pillow | 8.1.2 | GHSA-f4w8-cv6p-x6r5 |
| PyPI | pillow | 8.1.1 | PYSEC-2021-40 |
| Rocky Linux:8 | python-pillow | 0:5.1.1-16.el8 | RLSA-2021:4149 |
Affected products (as reported)
References
- FEDORA-2021-0ece308612 vendor-advisory
- FEDORA-2021-15845d3abe vendor-advisory
- FEDORA-2021-9016a9b7bd vendor-advisory
- GLSA-202107-33 vendor-advisory
- https://pillow.readthedocs.io/en/stable/releasenotes/8.1.2.html
- https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html x_refsource_MISC, x_transferred
- FEDORA-2021-0ece308612 vendor-advisory, x_refsource_FEDORA, x_transferred
- FEDORA-2021-15845d3abe vendor-advisory, x_refsource_FEDORA, x_transferred
- FEDORA-2021-9016a9b7bd vendor-advisory, x_refsource_FEDORA, x_transferred