# CVE-2021-25291

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 1% (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-25291, GHSA-mvg9-xffr-p774, BIT-pillow-2021-25291, PYSEC-2021-37, UBUNTU-CVE-2021-25291, DEBIAN-CVE-2021-25291
- Record: https://cvemate.com/vulnerability/CVE-2021-25291 · JSON: https://cvemate.com/vulnerability/CVE-2021-25291/json

## Description

```text
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.
```

## 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: 1.398%, percentile 73.386%, 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.2.0 \| \< 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-25291>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25291>
- <https://github.com/python-pillow/Pillow/commit/8b8076bdcb3815be0ef0d279651d8d1342b8ea61>
- <https://github.com/python-pillow/Pillow/commit/cbdce6c5d054fccaf4af34b47f212355c64ace7a>
- <https://github.com/advisories/GHSA-mvg9-xffr-p774>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-37.yaml>
- <https://github.com/python-pillow/Pillow>
- <https://ubuntu.com/security/CVE-2021-25291>
- <https://ubuntu.com/security/notices/USN-4763-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-25291>
- <https://security-tracker.debian.org/tracker/CVE-2021-25291>

---

Data as of 2026-12-05T04:47:44.884Z. 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
