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

CVE-2022-45199: Pillow subject to DoS via SAMPLESPERPIXEL tag

November 14, 2022 (updated October 11, 2024)

Pillow starting with 9.2.0 and prior to 9.3.0 allows denial of service via SAMPLESPERPIXEL. A large value in the SAMPLESPERPIXEL tag could lead to a memory and runtime DOS in TiffImagePlugin.py when setting up the context for image decoding. This issue has been patched in version 9.3.0.

References

  • bugs.gentoo.org/878769
  • github.com/advisories/GHSA-q4mp-jvh2-76fj
  • github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-42980.yaml
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/commit/2444cddab2f83f28687c7c20871574acbb6dbcf3
  • github.com/python-pillow/Pillow/pull/6700
  • github.com/python-pillow/Pillow/releases/tag/9.3.0
  • nvd.nist.gov/vuln/detail/CVE-2022-45199
  • security.gentoo.org/glsa/202211-10

Code Behaviors & Features

Detect and mitigate CVE-2022-45199 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 9.2.0 before 9.3.0

Fixed versions

  • 9.3.0

Solution

Upgrade to version 9.3.0 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-400: Uncontrolled Resource Consumption

Source file

pypi/Pillow/CVE-2022-45199.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:56 +0000.