{"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-10-20T10:54:36.227667448Z","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":{"url":"https://github.com/python-pillow/Pillow/pull/5377/commits/22e9bee4ef225c0edbb9323f94c26cee0c623497","label":"python-pillow/Pillow#5377"},"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"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28675"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/pull/5377/commits/22e9bee4ef225c0edbb9323f94c26cee0c623497"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-g6rj-rv7j-xwp4"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-139.yaml"},{"type":"PACKAGE","url":"https://github.com/python-pillow/Pillow"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-20T10:54:36.227667448Z"}}