# CVE-2021-25290

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-03-19 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-25290, GHSA-8xjq-8fcg-g5hw, BIT-pillow-2021-25290, PYSEC-2021-36, UBUNTU-CVE-2021-25290, DEBIAN-CVE-2021-25290
- Record: https://cvemate.com/vulnerability/CVE-2021-25290 · JSON: https://cvemate.com/vulnerability/CVE-2021-25290/json

## Description

```text
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 2.372%, percentile 84.389%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine py3-pillow (Alpine Linux): \< 8.1.2-r0
- debian pillow (Debian): \< 8.1.1-1
- ubuntu pillow (Ubuntu): \< 2.3.0-1ubuntu3.4+esm5 \| \< 3.1.2-0ubuntu1.6 \| \< 5.1.0-1ubuntu0.5 \| \< 7.0.0-4ubuntu0.3
- ubuntu pillow-python2 (Ubuntu): All versions (No fix recorded)
- debian debian\_linux: 9.0
- PyPI pillow (PyPI): \< 8.1.1
- python pillow: \< 8.1.1

## References

- <https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html>
- <https://security.gentoo.org/glsa/202107-33>
- <https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html>
- <https://security.alpinelinux.org/vuln/CVE-2021-25290>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25290>
- <https://github.com/python-pillow/Pillow/commit/86f02f7c70862a0954bfe8133736d352db978eaa>
- <https://github.com/python-pillow/Pillow/commit/e25be1e33dc526bfd1094bc778a54d8e29bf66c9>
- <https://github.com/advisories/GHSA-8xjq-8fcg-g5hw>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-36.yaml>
- <https://github.com/python-pillow/Pillow>
- <https://ubuntu.com/security/CVE-2021-25290>
- <https://ubuntu.com/security/notices/USN-4763-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-25290>
- <https://ubuntu.com/security/notices/USN-8135-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-25290>

---

Data as of 2026-12-05T04:45:27.304Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
