CVE-2021-28677

python-pillow: Excessive CPU use in EPS image reader

Published Jun 2, 2021 CVSS 3.1 · 7.5 High EPSS 2.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2716-1 pillow security update
EUVD EUVD EUVD-2021-0184 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.
Github GHSA Github GHSA GHSA-q5hq-fp76-qmrc Uncontrolled Resource Consumption in Pillow
Ubuntu USN Ubuntu USN USN-4963-1 Pillow vulnerabilities
Ubuntu USN Ubuntu USN USN-8135-1 Pillow vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 9:47 PM
Reserved
Mar 18, 2021, 12:00 AM
Status
Modified
Published
Jun 2, 2021, 4:15 PM
Modified
Jun 17, 2026, 3:46 AM
Severity
Moderate
Public date
Apr 1, 2021, 12:00 AM