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

CVE-2021-23437: Uncontrolled Resource Consumption in pillow

September 7, 2021 (updated October 9, 2024)

The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.

References

  • github.com/advisories/GHSA-98vv-pw6r-q6q4
  • github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-317.yaml
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/commit/9e08eb8f78fdfd2f476e1b20b7cf38683754866b
  • lists.debian.org/debian-lts-announce/2024/03/msg00021.html
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RNSG6VFXTAROGF7ACYLMAZNQV4EJ6I2C
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VKRCL7KKAKOXCVD7M6WC5OKFGL4L3SJT
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RNSG6VFXTAROGF7ACYLMAZNQV4EJ6I2C
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VKRCL7KKAKOXCVD7M6WC5OKFGL4L3SJT
  • nvd.nist.gov/vuln/detail/CVE-2021-23437
  • pillow.readthedocs.io/en/stable/releasenotes/8.3.2.html
  • security.gentoo.org/glsa/202211-10
  • snyk.io/vuln/SNYK-PYTHON-PILLOW-1319443

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.2.0 before 8.3.2

Fixed versions

  • 8.3.2

Solution

Upgrade to version 8.3.2 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read
  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/Pillow/CVE-2021-23437.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:03 +0000.