Every CVE Search/ Get API key

CVE-2022-24303

Path traversal in Pillow

9.1 CriticalFix available

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

2.69%Up 1.8 points since Mar 28, 2022
90%50%10%1%

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 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS 2.0
6.4 MediumAV: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 HighCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 HighCVSS: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 CriticalCVSS: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 MediumCVSS: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 MediumCVSS: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 CriticalCVSS: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

Affected packages
PackageAffectedFixed
pillow
PyPI
before 9.0.1
9.0.1
py3-pillow
Alpine:v3.15
before 8.4.0-r3
8.4.0-r3
py3-pillow
Alpine:v3.16
before 9.0.1-r0
9.0.1-r0
py3-pillow
Alpine:v3.17
before 9.0.1-r0
9.0.1-r0
py3-pillow
Alpine:v3.18
before 9.0.1-r0
9.0.1-r0
py3-pillow
Alpine:v3.19
before 9.0.1-r0
9.0.1-r0
py3-pillow
Alpine:v3.20
before 9.0.1-r0
9.0.1-r0
py3-pillow
Alpine:v3.21
before 9.0.1-r0
9.0.1-r0
py3-pillow
Alpine:v3.22
before 9.0.1-r0
9.0.1-r0
py3-pillow
Alpine:v3.23
before 9.0.1-r0
9.0.1-r0
Show 21 moreShow less
Affected packages
PackageAffectedFixed
py3-pillow
Alpine:v3.24
before 9.0.1-r0
9.0.1-r0
pillow
Bitnami
before 9.0.1
9.0.1
pillow
TuxCare: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
pillow
Debian:12
before 9.0.1-1
9.0.1-1
pillow
Debian:13
before 9.0.1-1
9.0.1-1
pillow
Debian:14
before 9.0.1-1
9.0.1-1
pillow
Debian: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
pillow
PyPI
before 9.0.1, plus listed versions
1.01.11.21.31.4
Show 45 moreShow less
1.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-pillow
Mageia:8
From an advisory covering 4 CVEs
before 9.1.0-1.mga8
9.1.0-1.mga8
python-pillow
openEuler:20.03-LTS-SP1
before 8.1.1-9.oe1
8.1.1-9.oe1
python-pillow
openEuler:20.03-LTS-SP2
before 8.1.1-9.oe1
8.1.1-9.oe1
python-pillow
openEuler:20.03-LTS-SP3
before 8.1.1-9.oe1
8.1.1-9.oe1
python-pillow
openEuler:22.03-LTS
before 9.0.1-2.oe2203
9.0.1-2.oe2203
pillow
Root: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
pillow
Ubuntu: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 less
7.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-python2
Ubuntu: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
pillow
Ubuntu: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 less
7.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
Ubuntu: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-python2
Ubuntu: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-Pillow
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 9.0.1-1.1
9.0.1-1.1
python-Pillow
openSUSE:Tumbleweed
From an advisory covering 3 CVEs
before 11.1.0-1.1
11.1.0-1.1

History

History
RecordedChangedSources
affected
affectedOSV
affectedOSV
affected, factsOSV
affectedOSV
affectedOSV
aliasesEUVD
first indexedCVE 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

Show 30 moreShow less
This page doesn't list everything

Left out here: 35 versions. The JSON record has them.

MoveEnter Open