All reports
High

Uncontrolled Resource Consumption in Pillow

Affected versions

Version ranges need review.

Affected versions
<8.2.0
Fixed version
8.2.0
Affected versions
< 8.2.0
Fixed version
8.2.0
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-28677

Probability of exploitation in the next 30 days: 2.47%

FIRST EPSS · 2026-11-22

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.

Links

Credits

  • sunSUNQ