{"id":"CVE-2021-28677","published":"2021-06-02T15:18:49Z","modified":"2024-08-03T21:47:33Z","title":"An issue was discovered in Pillow before 8.2.0","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02469,"percentile":0.84888,"provenance":"source"},"cwes":[],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28677-fix-eps-dos-on-open","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/pull/5377","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.gentoo.org/glsa/202107-33","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":16.98}]},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<8.2.0"],"patched":["8.2.0"],"from":["GHSA-q5hq-fp76-qmrc","PYSEC-2021-93"],"provenance":"source"}],"summary":{"text":"The flaw lies in the readline implementation used by EPSImageFile in Pillow, the Python imaging library, in versions before 8.2.0: when handling EPS data, it accumulates lines with an accidentally quadratic method while searching for line endings, which can be triggered by any mix of carriage return and newline characters. An attacker who can supply a malicious EPS file to an application that opens it with Pillow can cause a denial of service during the open phase, before the image is accepted, with no authentication or user interaction beyond that file being processed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:06Z"},"euvd":{"id":"EUVD-2021-0184","exploited":false,"provenance":"source"}}