GHSA-g6rj-rv7j-xwp4
Pillow denial of service
At a glance
- Published
- Updated
- CVE
- CVE-2021-28675
- Aliases
- BIT-pillow-2021-28675, PYSEC-2021-139
- CVSS_V3
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- CVSS_V4
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Description
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`.
Affected packages
| Package | Versions |
|---|---|
| PyPI · pillow | introduced 0, fixed 8.2.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-28675 ADVISORY
- https://github.com/python-pillow/Pillow/pull/5377/commits/22e9bee4ef225c0edbb9323f94c26cee0c623497 WEB
- https://github.com/advisories/GHSA-g6rj-rv7j-xwp4 ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-139.yaml WEB
- https://github.com/python-pillow/Pillow PACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL WEB
- https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28675-fix-dos-in-psdimageplugin WEB
- https://security.gentoo.org/glsa/202107-33 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |