CVE-2021-25290
HIGH 7.5CVSS 3.1Out-of-bounds Write in Pillow
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.
- Published
- 19 Mar 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-787
- Also known as
- BIT-pillow-2021-25290GHSA-8xjq-8fcg-g5hwPYSEC-2021-36
- Sources
- NVDJSONOSV GHSA-8xjq-8fcg-g5hwJSONOSV PYSEC-2021-36JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
< 8.1.1 | 8.1.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | PyPI | pillow | < 8.1.1 | 8.1.1 |
References
- https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html · Mailing List, Third Party Advisory, WEB
- https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html · Release Notes, Vendor Advisory, WEB
- https://security.gentoo.org/glsa/202107-33 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-25290 · ADVISORY
- 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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 19 Mar 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Mar 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Mar 2021)