{"id":"CVE-2021-28675","details":"An 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.","aliases":["BIT-pillow-2021-28675","GHSA-g6rj-rv7j-xwp4","PYSEC-2021-139"],"modified":"2026-03-15T22:40:12.389790Z","published":"2021-06-02T15:15:07.823Z","related":["ALSA-2021:4149","MGASA-2021-0389","SUSE-SU-2021:1938-1","SUSE-SU-2021:1939-1","SUSE-SU-2021:1940-1","SUSE-SU-2024:1607-1"],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202107-33"},{"type":"ADVISORY","url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28675-fix-dos-in-psdimageplugin"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/python-pillow/pillow","events":[{"introduced":"0"},{"fixed":"e0e353c0ef7516979a9aedce3792596649ce4433"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"8.2.0"}]}}],"versions":["1.0","1.2","1.7.6","1.7.7","1.7.8","2.0.0","2.1.0","2.2.0","2.2.1","2.2.2","2.3.0","2.5.0","2.6.0","2.6.0-rc1","2.7.0","2.8.0","2.8.1","2.9.0","2.9.0.dev0","2.9.0.dev1","2.9.0.dev2","3.0.0","3.1.0","3.1.0-rc1","3.2.0","3.3.0","3.3.1","3.4.0","4.0.0","4.0.0a","4.1.0","4.2.0","4.3.0","5.0.0","5.1.0","5.2.0","5.3.0","5.4.0","6.0.0","6.1.0","6.2.0","7.0.0","7.1.0","7.2.0","8.0.0","8.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-28675.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"33"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}