CVE-2021-25290
7.5high
Out-of-bounds Write in Pillow
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 2.37% (higher than 84% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-8xjq-8fcg-g5hwBIT-PILLOW-2021-25290PYSEC-2021-36
Description
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.
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 |
| debian debian_linux | 9.0 | 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 a negative-offset memcpy with an invalid size.
NVD (es)
Se detectó un problema en Pillow versiones anteriores a 8.1.1. En el archivo TiffDecode.c, se presenta una memoria de desplazamiento negativo con un tamaño no válido
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://lists.debian.org/debian-lts-announce/2021/07/msg00018.html | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-25290 | advisory, web | |
| https://github.com/python-pillow/Pillow/commit/86f02f7c70862a0954bfe8133736d352db978eaa | web | |
| https://github.com/python-pillow/Pillow/commit/e25be1e33dc526bfd1094bc778a54d8e29bf66c9 | web | |
| https://github.com/advisories/GHSA-8xjq-8fcg-g5hw | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-36.yaml | web | |
| https://github.com/python-pillow/Pillow | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25290 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8xjq-8fcg-g5hw changed 2024-10-08 | CC-BY-4.0 |
| NVD | CVE-2021-25290 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-36 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-PILLOW-2021-25290 changed 2026-09-08 | Apache-2.0 |