CVE-2021-25291
7.5high
Out of bounds read in Pillow
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 1.40% (higher than 73% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-mvg9-xffr-p774BIT-PILLOW-2021-25291PYSEC-2021-37
Description
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| pillow (PyPI) | before 8.2.0, 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 | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.
GitHub Advisory Database
An issue was discovered in Pillow before 8.2.0. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.
NVD (es)
Se detectó un problema en Pillow versiones anteriores a 8.1.1. En el archivo TiffDecode.c, se presenta una lectura fuera de límites en la función TiffreadRGBATile por medio de límites de mosaico no válidos
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-25291 | advisory, web | |
| https://github.com/python-pillow/Pillow/commit/8b8076bdcb3815be0ef0d279651d8d1342b8ea61 | web | |
| https://github.com/python-pillow/Pillow/commit/cbdce6c5d054fccaf4af34b47f212355c64ace7a | web | |
| https://github.com/advisories/GHSA-mvg9-xffr-p774 | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-37.yaml | web | |
| https://github.com/python-pillow/Pillow | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25291 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mvg9-xffr-p774 changed 2024-10-09 | CC-BY-4.0 |
| NVD | CVE-2021-25291 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-37 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-PILLOW-2021-25291 changed 2026-09-08 | Apache-2.0 |