CVE-2021-25289
python-pillow: insufficent fix for CVE-2020-35654 due to incorrect error checking in TiffDecode.c
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Bitnami. Rated lower by Red Hat (high), Ubuntu (medium).
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 and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | pillow | 8.1.1 |
| pip::GitHub Security Advisory pip | pillow | 8.1.1 |
| alpine 3.14 | py3-pillow | 8.1.2-r0 |
| alpine 3.15 | py3-pillow | 8.1.2-r0 |
| alpine 3.16 | py3-pillow | 8.1.2-r0 |
| alpine 3.17 | py3-pillow | 8.1.2-r0 |
| alpine 3.18 | py3-pillow | 8.1.2-r0 |
| alpine 3.19 | py3-pillow | 8.1.2-r0 |
| alpine 3.20 | py3-pillow | 8.1.2-r0 |
| alpine 3.21 | py3-pillow | 8.1.2-r0 |
| alpine 3.22 | py3-pillow | 8.1.2-r0 |
| alpine 3.23 | py3-pillow | 8.1.2-r0 |
Show all 22 entries from 22 sources
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | pillow | 8.1.1 |
| pip::GitHub Security Advisory pip | pillow | 8.1.1 |
| alpine 3.14 | py3-pillow | 8.1.2-r0 |
| alpine 3.15 | py3-pillow | 8.1.2-r0 |
| alpine 3.16 | py3-pillow | 8.1.2-r0 |
| alpine 3.17 | py3-pillow | 8.1.2-r0 |
| alpine 3.18 | py3-pillow | 8.1.2-r0 |
| alpine 3.19 | py3-pillow | 8.1.2-r0 |
| alpine 3.20 | py3-pillow | 8.1.2-r0 |
| alpine 3.21 | py3-pillow | 8.1.2-r0 |
| alpine 3.22 | py3-pillow | 8.1.2-r0 |
| alpine 3.23 | py3-pillow | 8.1.2-r0 |
| alpine 3.24 | py3-pillow | 8.1.2-r0 |
| alpine edge | py3-pillow | 8.1.2-r0 |
| debian 11 | pillow | 8.1.1-1 |
| debian 12 | pillow | 8.1.1-1 |
| debian 13 | pillow | 8.1.1-1 |
| debian 14 | pillow | 8.1.1-1 |
| echo | pillow | 8.1.1-1 |
| ubuntu 20.04 | pillow | 7.0.0-4ubuntu0.3 |
| ubuntu 20.04-ESM | pillow | 7.0.0-4ubuntu0.3 |
| ubuntu 20.10 | pillow | 7.2.0-1ubuntu0.2 |
References
- https://access.redhat.com/security/cve/CVE-2021-25289
- https://github.com/advisories/GHSA-57h3-9rgr-c24m
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-35.yaml
- https://github.com/python-pillow/Pillow
- https://github.com/python-pillow/Pillow/commit/3fee28eb9479bf7d59e0fa08068f9cc4a6e2f04c
- https://github.com/python-pillow/Pillow/commit/cbfdde7b1f2295059a20a539ee9960f0bec7b299
- https://nvd.nist.gov/vuln/detail/CVE-2021-25289
- https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html