CVE-2021-28677
publishedpython-pillow: Excessive CPU use in EPS image reader
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2083 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-146 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | python3-pillow | Advisory build | 5.1.1-16.el8 | ALSA-2021:4149 |
| Alpine Linux | edge | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Debian | stretch | pillow | Advisory build | 4.0.0-4+deb9u3 | DLA-2716-1 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillowsrc | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Pillowaarch64 | Advisory build | 7.2.0-150300.3.12.1 | SUSE-SU-2024:1607-1 |
Show 82 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | pillow | Advisory build | 5.1.0-1ubuntu0.6 | USN-4963-1 |
| Amazon Linux | AL2 | python-pillowaarch64 | Listed in advisory | Not stated | ALAS2-2023-2083 |
| Rocky Linux | 8 | python-pillowsrc | Listed in advisory | Not stated | RLSA-2021:4149 |
| Alpine Linux | v3.14 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Alpine Linux | v3.15 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Alpine Linux | v3.16 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Alpine Linux | v3.17 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Alpine Linux | v3.18 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-pillow | Fixed | 8.2.0-r0 | Package fix record |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfoaarch64 | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfoppc64le | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfos390x | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfox86_64 | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debugsourceaarch64 | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debugsourceppc64le | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debugsources390x | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debugsourcex86_64 | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillowaarch64 | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillowppc64le | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillows390x | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillowx86_64 | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillow-debuginfoaarch64 | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillow-debuginfoppc64le | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillow-debuginfos390x | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillow-debuginfox86_64 | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillow-tk-debuginfoaarch64 | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillow-tk-debuginfoppc64le | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillow-tk-debuginfos390x | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| Red Hat Enterprise Linux | RHEL-8 | python3-pillow-tk-debuginfox86_64 | Advisory build | 5.1.1-16.el8 | RHSA-2021:4149 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Pillowppc64le | Advisory build | 7.2.0-150300.3.12.1 | SUSE-SU-2024:1607-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Pillows390x | Advisory build | 7.2.0-150300.3.12.1 | SUSE-SU-2024:1607-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Pillowx86_64 | Advisory build | 7.2.0-150300.3.12.1 | SUSE-SU-2024:1607-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Pillow-tkaarch64 | Advisory build | 7.2.0-150300.3.12.1 | SUSE-SU-2024:1607-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Pillow-tkppc64le | Advisory build | 7.2.0-150300.3.12.1 | SUSE-SU-2024:1607-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Pillow-tks390x | Advisory build | 7.2.0-150300.3.12.1 | SUSE-SU-2024:1607-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Pillow-tkx86_64 | Advisory build | 7.2.0-150300.3.12.1 | SUSE-SU-2024:1607-1 |
| Ubuntu | bionic | python-pil | Advisory build | 5.1.0-1ubuntu0.6 | USN-4963-1 |
| Ubuntu | bionic | python-pil.imagetk | Advisory build | 5.1.0-1ubuntu0.6 | USN-4963-1 |
| Ubuntu | bionic | python3-pil | Advisory build | 5.1.0-1ubuntu0.6 | USN-4963-1 |
| Ubuntu | bionic | python3-pil.imagetk | Advisory build | 5.1.0-1ubuntu0.6 | USN-4963-1 |
| Ubuntu | focal | pillow | Advisory build | 7.0.0-4ubuntu0.4 | USN-4963-1 |
| Ubuntu | focal | python3-pil | Advisory build | 7.0.0-4ubuntu0.4 | USN-4963-1 |
| Ubuntu | focal | python3-pil.imagetk | Advisory build | 7.0.0-4ubuntu0.4 | USN-4963-1 |
| Ubuntu | trusty | pillow | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python-imaging | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python-imaging-compat | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python-imaging-sane | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python-imaging-tk | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python-pil | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python-pil.imagetk | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python-sane | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python3-imaging | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python3-imaging-sane | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python3-imaging-tk | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python3-pil | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python3-pil.imagetk | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | trusty | python3-sane | Advisory build | 2.3.0-1ubuntu3.4+esm5 | USN-8135-1 |
| Ubuntu | xenial | pillow | Advisory build | 3.1.2-0ubuntu1.6+esm3 | USN-8135-1 |
| Ubuntu | xenial | python-imaging | Advisory build | 3.1.2-0ubuntu1.6+esm3 | USN-8135-1 |
| Ubuntu | xenial | python-pil | Advisory build | 3.1.2-0ubuntu1.6+esm3 | USN-8135-1 |
| Ubuntu | xenial | python-pil.imagetk | Advisory build | 3.1.2-0ubuntu1.6+esm3 | USN-8135-1 |
| Ubuntu | xenial | python3-pil | Advisory build | 3.1.2-0ubuntu1.6+esm3 | USN-8135-1 |
| Ubuntu | xenial | python3-pil.imagetk | Advisory build | 3.1.2-0ubuntu1.6+esm3 | USN-8135-1 |
| Amazon Linux | AL2 | python-pillowi686 | Listed in advisory | Not stated | ALAS2-2023-2083 |
| Amazon Linux | AL2 | python-pillowsrc | Listed in advisory | Not stated | ALAS2-2023-2083 |
| Amazon Linux | AL2 | python-pillowx86_64 | Listed in advisory | Not stated | ALAS2-2023-2083 |
| Amazon Linux | AL2023 | python-pillowaarch64 | Listed in advisory | Not stated | ALAS2023-2023-146 |
| Amazon Linux | AL2023 | python-pillowsrc | Listed in advisory | Not stated | ALAS2023-2023-146 |
| Amazon Linux | AL2023 | python-pillowx86_64 | Listed in advisory | Not stated | ALAS2023-2023-146 |
| Rocky Linux | 8 | python-pillow-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2021:4149 |
| Rocky Linux | 8 | python-pillow-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2021:4149 |
| Rocky Linux | 8 | python3-pillowaarch64 | Listed in advisory | Not stated | RLSA-2021:4149 |
| Rocky Linux | 8 | python3-pillowx86_64 | Listed in advisory | Not stated | RLSA-2021:4149 |
| Rocky Linux | 8 | python3-pillow-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2021:4149 |
| Rocky Linux | 8 | python3-pillow-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2021:4149 |
| Rocky Linux | 8 | python3-pillow-tk-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2021:4149 |
| Rocky Linux | 8 | python3-pillow-tk-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2021:4149 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- https://github.com/python-pillow/Pillow/pull/5377
- [debian-lts-announce] 20210722 [SECURITY] [DLA 2716-1] pillow security update https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html
- FEDORA-2021-77756994ba https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/
- https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28677-fix-eps-dos-on-open
- GLSA-202107-33 https://security.gentoo.org/glsa/202107-33
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9d36a1a7427d0b832598fd50be60e320751f9c6fd9d1063ebf3df066561fff94
- Ingested
- 23 Sep 2026, 07:53:47 UTC
- Source record
- Official CVE record