9.8critical
Out of bounds write in Pillow
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 2.03% (higher than 81% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-57h3-9rgr-c24mBIT-PILLOW-2021-25289PYSEC-2021-35
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| pillow (PyPI) | before 8.1.1 | GitHub Advisory Database, PyPA Advisory Database |
| python pillow | before 8.1.1 | NVD |
| pillow (Bitnami) | before 8.1.1 | Bitnami Vulnerability Database |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
NVD (es)
Se detectó un problema en Pillow versiones anteriores a 8.1.1. La función TiffDecode presenta un desbordamiento de búfer en la región heap de la memoria cuando se decodifican archivos YCbCr diseñados debido a determinados conflictos de interpretación con LibTIFF en el modo RGBA. NOTA: este problema se presenta debido a una corrección incompleta para CVE-2020-35654
References
| https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html | advisory, release-notes, vendor-advisory, web | |
| https://security.gentoo.org/glsa/202107-33 | advisory, third-party-advisory, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-25289 | advisory, web | |
| https://github.com/python-pillow/Pillow/commit/3fee28eb9479bf7d59e0fa08068f9cc4a6e2f04c | web | |
| https://github.com/python-pillow/Pillow/commit/cbfdde7b1f2295059a20a539ee9960f0bec7b299 | web | |
| https://github.com/advisories/GHSA-57h3-9rgr-c24m | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-35.yaml | web | |
| https://github.com/python-pillow/Pillow | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25289 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-57h3-9rgr-c24m changed 2024-10-08 | CC-BY-4.0 |
| NVD | CVE-2021-25289 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-35 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-PILLOW-2021-25289 changed 2026-09-08 | Apache-2.0 |