Name | CVE-2021-28677 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2716-1, ELA-546-1 |
Debian Bugs | 989062 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
pillow (PTS) | jessie, jessie (lts) | 2.6.1-2+deb8u10 | fixed |
stretch (security) | 4.0.0-4+deb9u4 | fixed | |
stretch (lts), stretch | 4.0.0-4+deb9u6 | fixed | |
buster (security), buster, buster (lts) | 5.4.1-2+deb10u6 | fixed | |
bullseye (security), bullseye | 8.1.2+dfsg-0.3+deb11u2 | fixed | |
bookworm (security), bookworm | 9.4.0-1.1+deb12u1 | fixed | |
sid, trixie | 10.4.0-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
pillow | source | experimental | 8.2.0-1 | |||
pillow | source | jessie | 2.6.1-2+deb8u7 | ELA-546-1 | ||
pillow | source | stretch | 4.0.0-4+deb9u3 | DLA-2716-1 | ||
pillow | source | buster | 5.4.1-2+deb10u3 | |||
pillow | source | (unstable) | 8.1.2+dfsg-0.2 | 989062 |
https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28677-fix-eps-dos-on-open
https://github.com/python-pillow/Pillow/commit/5a5e6db0abf4e7a638fb1b3408c4e495a096cb92