{"id":"CVE-2021-28675","aliases":["BIT-pillow-2021-28675","GHSA-g6rj-rv7j-xwp4","PYSEC-2021-139"],"url":"https://o3.security/vulnerability/CVE-2021-28675","summary":"Pillow denial of service","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.","published":"2021-06-02T15:15:07.823Z","modified":"2026-08-07T11:31:17.713085613Z","cvss":{"score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},"epss":{"score":0.0096,"percentile":0.58331,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"pillow","fixedVersion":"8.2.0"}],"fix":null,"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/"},{"type":"ADVISORY","url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28675-fix-dos-in-psdimageplugin"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202107-33"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:31:17.713085613Z"}}