{"id":"ALPINE-CVE-2021-28677","details":"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.","modified":"2026-11-03T06:32:38.814217171Z","published":"2021-06-02T16:15:08.827Z","upstream":["CVE-2021-28677"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-28677"}],"affected":[{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}},{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}},{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}},{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}},{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}},{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}},{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}},{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}},{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}},{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}},{"package":{"name":"py3-pillow","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/py3-pillow?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28677.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}