Read the docs
TI-2021-09744 Aliases CVE-2021-28677GHSA-q5hq-fp76-qmrc

An issue was discovered in Pillow before 8.2.0.

Priority LOW 38CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 1 fixed, 2 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.

Summary

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.

Why it matters now

EPSS 0.02469 84th percentileScored 2026-11-07
Fix Partial pillow (PyPI): 8.2.0Red Hat: 1 advisoryRed Hat: 1 fixed, 2 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—pillow (PyPI)before 8.2.08.2.0Patch availableGHSA-q5hq-fp76-qmrc
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • pillow (PyPI) Vendor— Affected before 8.2.0 Fixed in 8.2.0 Patch available GHSA-q5hq-fp76-qmrc

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*before 8.2.0Vulnerablepython-pillow
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*33VulnerableFedoraproject
  • cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* Versions before 8.2.0 Vulnerable ·python-pillow
  • cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* Versions 33 Vulnerable ·Fedoraproject

Remediation

  • Fix · GHSA-q5hq-fp76-qmrc pillow (PyPI) Fixed in 8.2.0 Advisory →

Red Hat 1 advisory

  • RHSA-2021:4149 Released 2021-11-09 · Red Hat rating Moderate
    python-pillow security update
    • Red Hat Enterprise Linux AppStream (v. 8) python-pillow-5.1.1-16.el8, python3-pillow-5.1.1-16.el8

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Quay 3AffectedNo fix yet
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2021:4149

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-28677
  2. 2026-10-03 Alias added: GHSA-q5hq-fp76-qmrc

References

Sources