ADVISORIES

Ubuntu CVE Tracker

UBUNTU-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.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSpillow
All versions before 2.3.0-1ubuntu3.4+esm5 (fixed in 2.3.0-1ubuntu3.4+esm5)
Ubuntu:Pro:16.04:LTSpillow
All versions before 3.1.2-0ubuntu1.6+esm3 (fixed in 3.1.2-0ubuntu1.6+esm3)
Ubuntu:18.04:LTSpillow
All versions before 5.1.0-1ubuntu0.6 (fixed in 5.1.0-1ubuntu0.6)
Ubuntu:20.04:LTSpillow
All versions before 7.0.0-4ubuntu0.4 (fixed in 7.0.0-4ubuntu0.4)
Ubuntu:Pro:20.04:LTSpillow-python2
All versions, no fix listed

References