CVE-2022-24303
Path traversal in Pillow
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.1
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
CVE-2022-24303- 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 - CVSS 2.0
- 6.4 Medium
AV:N/AC:L/Au:N/C:N/I:P/A:P - Updated
- 2026-11-02
CVE List No score
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
CVE-2022-24303- Updated
- 2026-11-02
EUVDEUVD-2022-0196 No score
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
EUVD-2022-0196- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-9j59-75qj-795w
8.8
Path traversal in Pillow
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
GHSA-9j59-75qj-795w- CVSS 4.0
- 8.8 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 - 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-24303
9.1
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
ALPINE-CVE-2022-24303- 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 - Updated
- 2026-11-03
OSVDEBIAN-CVE-2022-24303
9.1
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
DEBIAN-CVE-2022-24303- 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 - Updated
- 2026-11-03
Show 14 moreShow less
OSVGHSA-9j59-75qj-795w
8.8
Path traversal in Pillow
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
GHSA-9j59-75qj-795w- CVSS 4.0
- 8.8 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 - 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVOESA-2022-1540
5.9
python-pillow security update
Python image processing library.
Security Fix(es):
Pillow is a PIL (Python Imaging Library) fork. Affected versions of this package are vulnerable to Improper Input Validation. When the path to the temporary directory on Linux or macOS contained a space, this would break removal of the temporary image file after im.show() (and related actions), and potentially remove an unrelated file.(CVE-2022-24303)
- Record
OESA-2022-1540- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVOESA-2022-2086
5.9
python-pillow security update
Security Fix(es):
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.(CVE-2022-24303)
- Record
OESA-2022-2086- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-24303
9.1
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
UBUNTU-CVE-2022-24303- 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 - Updated
- 2026-11-02
OSVBIT-pillow-2022-24303 No score
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
BIT-pillow-2022-24303- Updated
- 2026-11-02
OSVCLSA-2026-1792160910 No score
TuxCare security update for pillow (3 CVEs)
TuxCare rebuilt pillow to address 3 CVEs. Fixed in 8.4.0.post2+tuxcare.
- Record
CLSA-2026-1792160910- Updated
- 2026-11-02
OSV No score
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
CVE-2022-24303- Updated
- 2026-11-02
OSVMGASA-2022-0166 No score
Updated python-pillow packages fix security vulnerability
path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path. (CVE-2022-22815) path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path. (CVE-2022-22816) PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions (CVE-2022-22817) Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled. (CVE-2022-24303)
- Record
MGASA-2022-0166- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11814-1 No score
python310-Pillow-9.0.1-1.1 on GA media
These are all security issues fixed in the python310-Pillow-9.0.1-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11814-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:14645-1 No score
python311-Pillow-11.1.0-1.1 on GA media
These are all security issues fixed in the python311-Pillow-11.1.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:14645-1- Updated
- 2026-11-02
OSVPYSEC-2022-168 No score
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- Record
PYSEC-2022-168- Updated
- 2026-11-02
OSVROOT-APP-PYPI-CVE-2022-24303 No score
CVE-2022-24303 in pillow - Patched by Root
Root has patched CVE-2022-24303 in the pillow package for Root:PyPI. Multiple fixed versions available.
- Record
ROOT-APP-PYPI-CVE-2022-24303- Updated
- 2026-11-05
OSVUSN-5777-1 No score
pillow vulnerabilities
It was discovered that Pillow incorrectly handled the deletion of temporary files when using a temporary directory that contains spaces. An attacker could possibly use this issue to delete arbitrary files. This issue only affected Ubuntu 20.04 LTS. (CVE-2022-24303)
It was discovered that Pillow incorrectly handled the decompression of highly compressed GIF data. An attacker could possibly use this issue to cause Pillow to crash, resulting in a denial of service. (CVE-2022-45198)
- Record
USN-5777-1- Updated
- 2026-11-02
OSVUSN-5777-2 No score
pillow-python2 vulnerabilities
USN-5777-1 fixed vulnerabilities in Pillow (Python 3). This update provides the corresponding updates for Pillow (Python 2) in Ubuntu 20.04 LTS.
Original advisory details:
It was discovered that Pillow incorrectly handled the deletion of temporary files when using a temporary directory that contains spaces. An attacker could possibly use this issue to delete arbitrary files. This issue only affected Ubuntu 20.04 LTS. (CVE-2022-24303)
It was discovered that Pillow incorrectly handled the decompression of highly compressed GIF data. An attacker could possibly use this issue to cause Pillow to crash, resulting in a denial of service. (CVE-2022-45198)
- Record
USN-5777-2- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pillowPyPI |
before 9.0.1 | 9.0.1 |
py3-pillowAlpine:v3.15 |
before 8.4.0-r3 | 8.4.0-r3 |
py3-pillowAlpine:v3.16 |
before 9.0.1-r0 | 9.0.1-r0 |
py3-pillowAlpine:v3.17 |
before 9.0.1-r0 | 9.0.1-r0 |
py3-pillowAlpine:v3.18 |
before 9.0.1-r0 | 9.0.1-r0 |
py3-pillowAlpine:v3.19 |
before 9.0.1-r0 | 9.0.1-r0 |
py3-pillowAlpine:v3.20 |
before 9.0.1-r0 | 9.0.1-r0 |
py3-pillowAlpine:v3.21 |
before 9.0.1-r0 | 9.0.1-r0 |
py3-pillowAlpine:v3.22 |
before 9.0.1-r0 | 9.0.1-r0 |
py3-pillowAlpine:v3.23 |
before 9.0.1-r0 | 9.0.1-r0 |
Show 21 moreShow less
| Package | Affected | Fixed |
|---|---|---|
py3-pillowAlpine:v3.24 |
before 9.0.1-r0 | 9.0.1-r0 |
pillowBitnami |
before 9.0.1 | 9.0.1 |
pillowTuxCare:PyPI From an advisory covering 3 CVEs |
8.4.0 up to 8.4.0.post2+tuxcare, plus listed versions 8.4.0.post1+tuxcare |
8.4.0.post2+tuxcare |
pillowDebian:12 |
before 9.0.1-1 | 9.0.1-1 |
pillowDebian:13 |
before 9.0.1-1 | 9.0.1-1 |
pillowDebian:14 |
before 9.0.1-1 | 9.0.1-1 |
pillowDebian:11 From an advisory covering 3 CVEs |
before 8.1.2+dfsg-0.3+deb11u3, plus listed versions 8.1.2+dfsg-0.38.1.2+dfsg-0.3+deb11u18.1.2+dfsg-0.3+deb11u2 |
8.1.2+dfsg-0.3+deb11u3 |
pillowPyPI |
before 9.0.1, plus listed versions 1.01.11.21.31.4 Show 45 moreShow less1.51.61.7.01.7.11.7.21.7.31.7.41.7.51.7.61.7.71.7.82.0.02.1.02.2.02.2.12.2.22.3.02.3.12.3.22.4.02.5.02.5.12.5.22.5.32.6.02.6.12.6.22.7.02.8.02.8.12.8.22.9.03.0.03.1.03.1.0.rc13.1.0rc13.1.13.1.23.2.03.3.03.3.13.3.23.3.33.4.03.4.1 |
9.0.1 |
python-pillowMageia:8 From an advisory covering 4 CVEs |
before 9.1.0-1.mga8 | 9.1.0-1.mga8 |
python-pillowopenEuler:20.03-LTS-SP1 |
before 8.1.1-9.oe1 | 8.1.1-9.oe1 |
python-pillowopenEuler:20.03-LTS-SP2 |
before 8.1.1-9.oe1 | 8.1.1-9.oe1 |
python-pillowopenEuler:20.03-LTS-SP3 |
before 8.1.1-9.oe1 | 8.1.1-9.oe1 |
python-pillowopenEuler:22.03-LTS |
before 9.0.1-2.oe2203 | 9.0.1-2.oe2203 |
pillowRoot:PyPI |
before 8.1.2+aikido.1 | 8.1.2+aikido.18.2.0+aikido.19.0.0+aikido.19.0.0+aikido.27.0.0+aikido.27.0.0+aikido.3 |
pillowUbuntu:20.04:LTS |
before 7.0.0-4ubuntu0.7, plus listed versions 6.1.0-16.1.0-1build16.2.1-27.0.0-47.0.0-4build1 Show 6 moreShow less7.0.0-4ubuntu0.17.0.0-4ubuntu0.27.0.0-4ubuntu0.37.0.0-4ubuntu0.47.0.0-4ubuntu0.57.0.0-4ubuntu0.6 |
7.0.0-4ubuntu0.7 |
pillow-python2Ubuntu:Pro:20.04:LTS |
before 6.2.1-3ubuntu0.1~esm1, plus listed versions 6.2.1-3~build16.2.1-3 |
6.2.1-3ubuntu0.1~esm1 |
pillowUbuntu:20.04:LTS From an advisory covering 2 CVEs |
before 7.0.0-4ubuntu0.7, plus listed versions 6.1.0-16.1.0-1build16.2.1-27.0.0-47.0.0-4build1 Show 6 moreShow less7.0.0-4ubuntu0.17.0.0-4ubuntu0.27.0.0-4ubuntu0.37.0.0-4ubuntu0.47.0.0-4ubuntu0.57.0.0-4ubuntu0.6 |
7.0.0-4ubuntu0.7 |
pillowUbuntu:22.04:LTS From an advisory covering 2 CVEs |
before 9.0.1-1ubuntu0.1, plus listed versions 8.1.2+dfsg-0.39.0.0-19.0.1-19.0.1-1build1 |
9.0.1-1ubuntu0.1 |
pillow-python2Ubuntu:Pro:20.04:LTS From an advisory covering 2 CVEs |
before 6.2.1-3ubuntu0.1~esm1, plus listed versions 6.2.1-3~build16.2.1-3 |
6.2.1-3ubuntu0.1~esm1 |
python-PillowopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 9.0.1-1.1 | 9.0.1-1.1 |
python-PillowopenSUSE:Tumbleweed From an advisory covering 3 CVEs |
before 11.1.0-1.1 | 11.1.0-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| affected | OSV | |
| affected | OSV | |
| affected, facts | OSV | |
| affected | OSV | |
| affected | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-24303 is a critical vulnerability (CVSS 9.1) in Python Pillow, published February 26, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.69%, the 85th percentile. Fixed in pillow 9.0.1.
References
github.com/python-pillow/Pillow/pull/3450
pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W4ZUXPKEX72O3E5IHBPVY5ZCPMJ4GHHV
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XR6UP2XONXOVXI4446VY72R63YRO2YTP
security.gentoo.org/glsa/202211-10
nvd.nist.gov/vuln/detail/CVE-2022-24303
Show 30 moreShow less
github.com/python-pillow/Pillow/commit/427221ef5f19157001bf8b1ad7cfe0b905ca8c26
github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-168.yaml
github.com/python-pillow/Pillow/pull/6010
github.com/python-pillow/Pillow/commit/10c4f75aaa383bd9671e923e3b91d391ea12d781
github.com/python-pillow/Pillow/commit/143032103c9f2d55a0a7960bd3e630cb72549e8a
github.com/python-pillow/Pillow/blob/e8ab5640774716c5486d3cb05167f74f742ad6ef/CHANGES.rst?plain=1
lists.fedoraproject.org/archives/list/[email protected]/message/W4ZUXPKEX72O3E5IHBPVY5ZCPMJ4GHHV
lists.fedoraproject.org/archives/list/[email protected]/message/XR6UP2XONXOVXI4446VY72R63YRO2YTP
github.com/advisories/GHSA-9j59-75qj-795w
security.alpinelinux.org/vuln/CVE-2022-24303
github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24303.json
security-tracker.debian.org/tracker/CVE-2022-24303
github.com/python-pillow/Pillow
advisories.mageia.org/MGASA-2022-0166.html
bugs.mageia.org/show_bug.cgi?id=29887
ubuntu.com/security/notices/USN-5227-1
debian.org/security/2022/dsa-5053
lists.fedoraproject.org/archives/list/[email protected]/thread/CK3IGXU77EQTXZAYI2PTIAI4XLFS7AFP
lists.fedoraproject.org/archives/list/[email protected]/thread/JR2LTB6KTUEU7YVPJ5MHA2GHOIL2JQQE
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1540
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-2086
ubuntu.com/security/CVE-2022-24303
ubuntu.com/security/notices/USN-5777-1
ubuntu.com/security/notices/USN-5777-2
cve.org/CVERecord?id=CVE-2022-24303
ubuntu.com/security/CVE-2022-45198
suse.com/security/cve/CVE-2022-22817
suse.com/security/cve/CVE-2022-24303
lists.opensuse.org/archives/list/[email protected]/thread/44PI4DZ7YJFTM3VMZXVNEBF2OQQVHGKN
suse.com/security/cve/CVE-2022-30595
Left out here: 35 versions. The JSON record has them.