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

CVE-2022-24303: Path traversal in Pillow

March 11, 2022 (updated October 11, 2024)

Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.

References

  • github.com/advisories/GHSA-9j59-75qj-795w
  • github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-168.yaml
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/blob/e8ab5640774716c5486d3cb05167f74f742ad6ef/CHANGES.rst?plain=1
  • github.com/python-pillow/Pillow/commit/10c4f75aaa383bd9671e923e3b91d391ea12d781
  • github.com/python-pillow/Pillow/commit/143032103c9f2d55a0a7960bd3e630cb72549e8a
  • github.com/python-pillow/Pillow/commit/427221ef5f19157001bf8b1ad7cfe0b905ca8c26
  • github.com/python-pillow/Pillow/pull/3450
  • github.com/python-pillow/Pillow/pull/6010
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W4ZUXPKEX72O3E5IHBPVY5ZCPMJ4GHHV
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XR6UP2XONXOVXI4446VY72R63YRO2YTP
  • nvd.nist.gov/vuln/detail/CVE-2022-24303
  • pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html
  • security.gentoo.org/glsa/202211-10

Code Behaviors & Features

Detect and mitigate CVE-2022-24303 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 before 9.0.1

Fixed versions

  • 9.0.1

Solution

Upgrade to version 9.0.1 or above.

Impact 9.1 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

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