Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2021-28675

CVE-2021-28675: Pillow denial of service

June 8, 2021 (updated October 9, 2024)

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.

References

  • github.com/advisories/GHSA-g6rj-rv7j-xwp4
  • github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-139.yaml
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/pull/5377/commits/22e9bee4ef225c0edbb9323f94c26cee0c623497
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL
  • nvd.nist.gov/vuln/detail/CVE-2021-28675
  • pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html
  • security.gentoo.org/glsa/202107-33

Code Behaviors & Features

Detect and mitigate CVE-2021-28675 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 8.2.0

Fixed versions

  • 8.2.0

Solution

Upgrade to version 8.2.0 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-233: Improper Handling of Parameters
  • CWE-252: Unchecked Return Value

Source file

pypi/Pillow/CVE-2021-28675.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:50 +0000.