# CVE-2021-28677

- 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-06-02 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-28677, GHSA-q5hq-fp76-qmrc, BIT-pillow-2021-28677, PYSEC-2021-93, UBUNTU-CVE-2021-28677, DEBIAN-CVE-2021-28677
- Record: https://cvemate.com/vulnerability/CVE-2021-28677 · JSON: https://cvemate.com/vulnerability/CVE-2021-28677/json

## Description

```text
An issue was discovered in Pillow before 8.2.0. For EPS data, the readline implementation used in EPSImageFile has to deal with any combination of \r and \n as line endings. It used an accidentally quadratic method of accumulating lines while looking for a line ending. A malicious EPS file could use this to perform a DoS of Pillow in the open phase, before an image was accepted for opening.
```

## 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.469%, percentile 85.029%, 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.2.0-r0
- debian pillow (Debian): \< 8.1.2+dfsg-0.2
- ubuntu pillow (Ubuntu): \< 2.3.0-1ubuntu3.4+esm5 \| \< 3.1.2-0ubuntu1.6+esm3 \| \< 5.1.0-1ubuntu0.6 \| \< 7.0.0-4ubuntu0.4
- ubuntu pillow-python2 (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 33
- PyPI pillow (PyPI): \< 8.2.0
- python pillow: \< 8.2.0

## References

- <https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28677-fix-eps-dos-on-open>
- <https://github.com/python-pillow/Pillow/pull/5377>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/>
- <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-28677>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28677>
- <https://github.com/python-pillow/Pillow/commit/5a5e6db0abf4e7a638fb1b3408c4e495a096cb92>
- <https://github.com/advisories/GHSA-q5hq-fp76-qmrc>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-93.yaml>
- <https://github.com/python-pillow/Pillow>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/>
- <https://ubuntu.com/security/CVE-2021-28677>
- <https://ubuntu.com/security/notices/USN-4963-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-28677>
- <https://ubuntu.com/security/notices/USN-8135-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-28677>

---

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