CVE-2021-25290
HIGH7.5EPSS 0.26%Out-of-bounds Write in Pillow
Published: 3/29/2021Modified: 4/28/2026
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 packages (5)
- Alpine/py3-pillowfrom 0, < 8.1.2-r0
- Bitnami/pillowfrom 0, < 8.1.1
- Debian/pillowfrom 0, < 8.1.1-1
- PyPI/pillowfrom 0, < 8.1.1
- PyPI/pillowfrom 0, < 8.1.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (11)
- ADVISORYhttps://github.com/advisories/GHSA-8xjq-8fcg-g5hw
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-25290
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2021-25290
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-25290
- PATCHhttps://github.com/python-pillow/Pillow
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-36.yaml
- WEBhttps://github.com/python-pillow/Pillow/commit/86f02f7c70862a0954bfe8133736d352db978eaa
- WEBhttps://github.com/python-pillow/Pillow/commit/e25be1e33dc526bfd1094bc778a54d8e29bf66c9
- WEBhttps://lists.debian.org/debian-lts-announce/2021/07/msg00018.html
- WEBhttps://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
- WEBhttps://security.gentoo.org/glsa/202107-33