Skip to main content
← All vulnerabilities
CVE-2021-28677GHSA-Q5HQ-FP76-QMRCBIT-PILLOW-2021-28677PYSEC-2021-93

An issue was discovered in Pillow before 8.2.0.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.2.0
None on Exploit-DB, Metasploit or GitHub

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • pillowPyPI

    fixed in 8.2.0

References 5

pillow.readthedocs.io

GitHub · python-pillow/Pillow

lists.fedoraproject.org

security.gentoo.org

lists.debian.org