# CVE-2021-25292

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-03-19 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-25292, GHSA-9hx2-hgq2-2g4f, BIT-pillow-2021-25292, PYSEC-2021-38, UBUNTU-CVE-2021-25292, DEBIAN-CVE-2021-25292
- Record: https://cvemate.com/vulnerability/CVE-2021-25292 · JSON: https://cvemate.com/vulnerability/CVE-2021-25292/json

## Description

```text
An issue was discovered in Pillow before 8.1.1. The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking regex.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 1.727%, percentile 78.358%, 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): \< 5.1.0-1ubuntu0.5 \| \< 7.0.0-4ubuntu0.3
- ubuntu pillow-python2 (Ubuntu): All versions (No fix recorded)
- PyPI pillow (PyPI): ≥ 5.1.0, \< 8.1.1 \| \< 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-25292>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25292>
- <https://github.com/python-pillow/Pillow/commit/3bce145966374dd39ce58a6fc0083f8d1890719c>
- <https://github.com/python-pillow/Pillow/commit/521dab94c7ab72b037bd9a83e9663401e0fd2cee>
- <https://github.com/python-pillow/Pillow/commit/6207b44ab1ff4a91d8ddc7579619876d0bb191a4>
- <https://github.com/advisories/GHSA-9hx2-hgq2-2g4f>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-38.yaml>
- <https://github.com/python-pillow/Pillow>
- <https://ubuntu.com/security/CVE-2021-25292>
- <https://ubuntu.com/security/notices/USN-4763-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-25292>
- <https://security-tracker.debian.org/tracker/CVE-2021-25292>

---

Data as of 2026-12-05T06:45:52.679Z. 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
