Vulnerability · Published Mar 19, 2021 · Assigned by mitre
CVE-2021-25289
Critical 9.8
In plain English
A critical-severity security flaw in the py3-pillow package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 84% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)2.3%top 16.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
An issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. NOTE: this issue exists because of an incomplete fix for CVE-2020-35654.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-pillow | 8.1.2-r0 | ALPINE-CVE-2021-25289 |
| Alpine:v3.21 | py3-pillow | 8.1.2-r0 | ALPINE-CVE-2021-25289 |
| Alpine:v3.22 | py3-pillow | 8.1.2-r0 | ALPINE-CVE-2021-25289 |
| Alpine:v3.23 | py3-pillow | 8.1.2-r0 | ALPINE-CVE-2021-25289 |
| Alpine:v3.24 | py3-pillow | 8.1.2-r0 | ALPINE-CVE-2021-25289 |
| Debian:12 | pillow | 8.1.1-1 | DEBIAN-CVE-2021-25289 |
| Debian:13 | pillow | 8.1.1-1 | DEBIAN-CVE-2021-25289 |
| Debian:14 | pillow | 8.1.1-1 | DEBIAN-CVE-2021-25289 |
| PyPI | pillow | 8.1.1 | PYSEC-2021-35 |
| PyPI | pillow | 8.1.1 | GHSA-57h3-9rgr-c24m |
Affected products (as reported)
References
- https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html x_refsource_MISC
- GLSA-202107-33 vendor-advisory, x_refsource_GENTOO