# CVE-2021-25289

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 8.1.1 (CNA); fix release not confirmed
- Status: published
- Published: 2021-03-19 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-25289, GHSA-57h3-9rgr-c24m, BIT-pillow-2021-25289, PYSEC-2021-35, UBUNTU-CVE-2021-25289, DEBIAN-CVE-2021-25289
- Record: https://cvemate.com/vulnerability/CVE-2021-25289 · JSON: https://cvemate.com/vulnerability/CVE-2021-25289/json

## Description

```text
An issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. NOTE: this issue exists because of an incomplete fix for CVE-2020-35654.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.032%, percentile 81.724%, 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): \< 7.0.0-4ubuntu0.3
- ubuntu pillow-python2 (Ubuntu): All versions (No fix recorded)
- 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://security.alpinelinux.org/vuln/CVE-2021-25289>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25289>
- <https://github.com/python-pillow/Pillow/commit/3fee28eb9479bf7d59e0fa08068f9cc4a6e2f04c>
- <https://github.com/python-pillow/Pillow/commit/cbfdde7b1f2295059a20a539ee9960f0bec7b299>
- <https://github.com/advisories/GHSA-57h3-9rgr-c24m>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-35.yaml>
- <https://github.com/python-pillow/Pillow>
- <https://ubuntu.com/security/CVE-2021-25289>
- <https://ubuntu.com/security/notices/USN-4763-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-25289>
- <https://security-tracker.debian.org/tracker/CVE-2021-25289>

---

Data as of 2026-12-05T05:33:10.518Z. 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
