What’s Vulnerable › Vulnerabilities
CVE-2022-24303: Path traversal in Pillow
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-03-28 · updated 2026-06-17
Description
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
Affected products
- Fedoraproject Fedora: 34, 35
- python-pillow Pillow: before 9.0.1 — fixed in 9.0.1
- Pypi Pillow: before 9.0.1; 1.0, 1.1, 1.2, 1.3, 1.4, 1.5 (+79) — fixed in 9.0.1
How to fix
Upgrade to a fixed version: python-pillow Pillow 9.0.1; Pypi Pillow 9.0.1. Check the vendor advisory for mitigations.
References
- https://github.com/python-pillow/Pillow/pull/3450
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W4ZUXPKEX72O3E5IHBPVY5ZCPMJ4GHHV/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XR6UP2XONXOVXI4446VY72R63YRO2YTP/
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
- https://security.gentoo.org/glsa/202211-10
- https://github.com/python-pillow/Pillow/pull/3450
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W4ZUXPKEX72O3E5IHBPVY5ZCPMJ4GHHV/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XR6UP2XONXOVXI4446VY72R63YRO2YTP/
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
- https://security.gentoo.org/glsa/202211-10
Get alerted when CVE-2022-24303 or the next vulnerability affects your stack