# CVE-2022-24303: Path traversal in Pillow

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.69%, higher than 86% of CVEs (2026-12-01)
- Published: 2022-03-11T23:10:32.000Z
- Modified: 2026-09-08T08:48:18.559Z
- Also known as: GHSA-9j59-75qj-795w, BIT-PILLOW-2022-24303, PYSEC-2022-168
- Weaknesses: CWE-22
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pillow (PyPI): before 9.0.1
- python pillow: before 9.0.1
- fedoraproject fedora: 34; 35
- pillow (Bitnami): before 9.0.1

## Every score

- GitHub: CVSS:3.1 9.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

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

## Sources

- CVE List: [CVE-2022-24303](https://www.cve.org/CVERecord?id=CVE-2022-24303), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-9j59-75qj-795w](https://github.com/advisories/GHSA-9j59-75qj-795w), CC-BY-4.0, modified 2024-10-14
- NVD: [CVE-2022-24303](https://nvd.nist.gov/vuln/detail/CVE-2022-24303), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-168](https://osv.dev/vulnerability/PYSEC-2022-168), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-PILLOW-2022-24303](https://osv.dev/vulnerability/BIT-PILLOW-2022-24303), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-24303 · Whole record: https://cve.day/CVE-2022-24303.json · Rebuilt by cve.day 2026-11-25T22:58:10.286Z
