CVE-2021-28677

EUVD-2021-0184
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 49%
Affected Products (NVD)
VendorProductVersion
pythonpillow
𝑥
< 8.2.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
pillow
bookworm
9.4.0-1.1+deb12u1
fixed
bookworm (security)
9.4.0-1.1+deb12u1
fixed
bullseye
8.1.2+dfsg-0.3+deb11u2
fixed
bullseye (security)
8.1.2+dfsg-0.3+deb11u2
fixed
sid
10.4.0-1
fixed
trixie
10.4.0-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
pillow
bionic
Fixed 5.1.0-1ubuntu0.6
released
focal
Fixed 7.0.0-4ubuntu0.4
released
groovy
Fixed 7.2.0-1ubuntu0.3
released
hirsute
Fixed 8.1.2-1ubuntu0.1
released
impish
Fixed 8.1.2+dfsg-0.1ubuntu1
released
jammy
Fixed 8.1.2+dfsg-0.1ubuntu1
released
kinetic
Fixed 8.1.2+dfsg-0.1ubuntu1
released
lunar
Fixed 8.1.2+dfsg-0.1ubuntu1
released
mantic
Fixed 8.1.2+dfsg-0.1ubuntu1
released
noble
Fixed 8.1.2+dfsg-0.1ubuntu1
released
trusty
needs-triage
xenial
needs-triage
pillow-python2
bionic
dne
focal
needs-triage
groovy
ignored
hirsute
dne
impish
dne
jammy
dne
kinetic
dne
lunar
dne
mantic
dne
noble
dne
trusty
dne
xenial
dne
python-imaging
bionic
dne
focal
dne
groovy
dne
hirsute
dne
impish
dne
jammy
dne
kinetic
dne
lunar
dne
mantic
dne
noble
dne
trusty
dne
xenial
dne