CVE-2021-28675

NameCVE-2021-28675
DescriptionAn issue was discovered in Pillow before 8.2.0. PSDImagePlugin.PsdImageFile lacked a sanity check on the number of input layers relative to the size of the data block. This could lead to a DoS on Image.open prior to Image.load.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesELA-546-1, ELA-546-2
Debian Bugs989062

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pillow (PTS)jessie, jessie (lts)2.6.1-2+deb8u9fixed
stretch (security)4.0.0-4+deb9u4vulnerable
stretch (lts), stretch4.0.0-4+deb9u5vulnerable
buster5.4.1-2+deb10u3vulnerable
buster (security)5.4.1-2+deb10u6vulnerable
bullseye (security), bullseye8.1.2+dfsg-0.3+deb11u1fixed
bookworm9.4.0-1.1fixed
trixie10.2.0-1fixed
sid10.3.0-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pillowsourceexperimental8.2.0-1
pillowsourcejessie2.6.1-2+deb8u8ELA-546-2
pillowsource(unstable)8.1.2+dfsg-0.2989062

Notes

[buster] - pillow <ignored> (Minor issue)
[stretch] - pillow <ignored> (Minor issue, too intrusive to backport)
https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28675-fix-dos-in-psdimageplugin
https://github.com/python-pillow/Pillow/commit/22e9bee4ef225c0edbb9323f94c26cee0c623497

Search for package or bug name: Reporting problems