CVE-2022-24303 json
Path traversal in Pillow
published 2022-03-11 4 y ago modified 2026-09-08 2 mo ago also BIT-pillow-2022-24303 , EUVD-2022-0196 , GHSA-9j59-75qj-795w , PYSEC-2022-168
- cvss
- 9.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.7%
- EPSS 2.7% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
Patch / fix
- pypi pillow 9.0.1
- bitnami pillow 9.0.1
- python pillow 9.0.1
- pillow Debian 14, Debian 13, Debian 12 9.0.1-1
debian advisories DEBIAN-CVE-2022-24303
- pillow Ubuntu 20.04 LTS 7.0.0-4ubuntu0.7
- pillow-python2 Ubuntu Pro 20.04 LTS 6.2.1-3ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-24303
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-Pillow openSUSE Tumbleweed 11.1.0-1.1
- python-Pillow openSUSE Tumbleweed 9.0.1-1.1
opensuse advisories openSUSE-SU-2025:14645-1openSUSE-SU-2024:11814-1
- py3-pillow Alpine 3.15 8.4.0-r3
- py3-pillow Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 9.0.1-r0
alpine advisories ALPINE-CVE-2022-24303
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/python-pillow/Pillow@10c4f75 commit
- github.com/python-pillow/Pillow@1430321 commit
- github.com/python-pillow/Pillow@427221e commit
- github.com/python-pillow/Pillow#3450 pull request
- github.com/python-pillow/Pillow#6010 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-24303 updated cvss 7.4
python-pillow: temporary directory with a space character allows removal of unrelated file after im.show() and related actions
-
Red Hat Quay 3 quay/quay-rhel8affected: no fix available
-
Red Hat Enterprise Linux 7 python-pillow, python-pillow-qt, python-pillow-tk, python-pillow-sane Red Hat Enterprise Linux 8 python-pillow, python3-pillow, python3-pillow-tknot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.69% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
| OSV | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pillow | <9.0.1 |
9.0.1 |
| bitnami | pillow | <9.0.1 |
9.0.1 |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/python-pillow/Pillow/pull/3450
web, third-party-advisory, advisory
-
github.com
/python-pillow/Pillow/pull/6010
web
-
github.com
/python-pillow/Pillow/commit/10c4f75aaa383bd9671e923e3b91d391ea12d781
web
-
github.com
/python-pillow/Pillow/commit/143032103c9f2d55a0a7960bd3e630cb72549e8a
web
-
github.com
/python-pillow/Pillow/commit/427221ef5f19157001bf8b1ad7cfe0b905ca8c26
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/W4ZUXPKEX72O3E5IHBPVY5ZCPMJ4GHHV/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/XR6UP2XONXOVXI4446VY72R63YRO2YTP/
vendor-advisory, web
-
security.gentoo.org
/glsa/202211-10
vendor-advisory, web, third-party-advisory, advisory
-
pillow.readthedocs.io
/en/stable/releasenotes/9.0.1.html#security
web, release-notes, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24303
advisory, web
-
github.com
/advisories/GHSA-9j59-75qj-795w
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-168.yaml
web
-
github.com
/python-pillow/Pillow
package
-
github.com
/python-pillow/Pillow/blob/e8ab5640774716c5486d3cb05167f74f742ad6ef/CHANGES.rst?plain=1#L1172
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/W4ZUXPKEX72O3E5IHBPVY5ZCPMJ4GHHV
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/XR6UP2XONXOVXI4446VY72R63YRO2YTP
web
Sources
- CVE List CVE-2022-24303
- GitHub Advisory GHSA-9j59-75qj-795w
- NVD CVE-2022-24303
- OSV BIT-pillow-2022-24303
- OSV PYSEC-2022-168
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.