Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-24303

python-pillow: temporary directory with a space character allows removal of unrelated file after im.show() and related actions

Overview

Published
28 Mar 2022
Modified
17 Jun 2026
Critical CVE
2 Registry packages
15 OS packages
5 Linux distributions
Yes Fix available

Description

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

Source: OX vulnerability database

Severity

9.1 · CRITICAL

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Affected packages · 2

Packages affected by CVE-2022-24303
EcosystemPackageVulnerableFixed in
Bitnami pillow <9.0.1 9.0.1
PyPI pillow <9.0.1 9.0.1

Open a package to see all its vulnerabilities.

Operating systems · 15 fixes

alpine 4 releases · 1 package

fixed 4
py3-pillow
alpine fixes for CVE-2022-24303
ReleasePackageFixed in
3.22 py3-pillow 9.0.1-r0
3.23 py3-pillow 9.0.1-r0
3.24 py3-pillow 9.0.1-r0
edge py3-pillow 9.0.1-r0

debian 5 releases · 1 package

affected 1 fixed 4
pillow
debian fixes for CVE-2022-24303
ReleasePackageFixed in
10 pillow affected
11 pillow 8.1.2+dfsg-0.3+deb11u3
12 pillow 9.0.1-1
13 pillow 9.0.1-1
14 pillow 9.0.1-1

echo 1 release · 1 package

fixed 1
pillow
echo fixes for CVE-2022-24303
ReleasePackageFixed in
pillow 9.0.1-1

openSUSE 1 release · 2 packages

fixed 2
python311-pillow python310-pillow
openSUSE fixes for CVE-2022-24303
ReleasePackageFixed inAdvisory
Tumbleweed python311-pillow +5 11.1.0-1.1 openSUSE-SU-2025:14645-1
Tumbleweed python310-pillow +5 9.0.1-1.1 openSUSE-SU-2024:11814-1

ubuntu 2 releases · 2 packages

fixed 3
pillow pillow-python2
ubuntu fixes for CVE-2022-24303
ReleasePackageFixed in
20.04 pillow 7.0.0-4ubuntu0.7
20.04-ESM pillow-python2 6.2.1-3ubuntu0.1~esm1
20.04-ESM pillow 7.0.0-4ubuntu0.7

References

Show all 21 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.