cve.bz

CVE-2021-28677

7.5 highEPSS 2.5%

High (7.5). EPSS 2.5% chance of exploitation in the next 30 days. Fixed in pillow 8.2.0.

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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.5% chance of exploitation in the next 30 days; higher than 84% of CVEs (scores of 2026-10-31)
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q5hq-fp76-qmrcPyPIpillow<8.2.08.2.0
PYSEC-2021-93PyPIpillow<8.2.08.2.0

References

Check your stackJSON