CVE-2022-24303
python-pillow: temporary directory with a space character allows removal of unrelated file after im.show() and related actions
Overview
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
Operating systems · 15 fixes
alpine 4 releases · 1 package
fixed 4
py3-pillow
| Release | Package | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| pillow | 9.0.1-1 |
openSUSE 1 release · 2 packages
fixed 2
python311-pillow
python310-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed 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
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-24303
- github.com https://github.com/advisories/GHSA-9j59-75qj-795w
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-168.yaml
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/blob/e8ab5640774716c5486d3cb05167f74f742ad6ef/CHANGES.rst?plain=1#L1172
- github.com https://github.com/python-pillow/Pillow/commit/10c4f75aaa383bd9671e923e3b91d391ea12d781
- github.com https://github.com/python-pillow/Pillow/commit/143032103c9f2d55a0a7960bd3e630cb72549e8a
- github.com https://github.com/python-pillow/Pillow/commit/427221ef5f19157001bf8b1ad7cfe0b905ca8c26
- github.com https://github.com/python-pillow/Pillow/pull/3450
- github.com https://github.com/python-pillow/Pillow/pull/6010
Show all 21 references
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W4ZUXPKEX72O3E5IHBPVY5ZCPMJ4GHHV/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XR6UP2XONXOVXI4446VY72R63YRO2YTP/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W4ZUXPKEX72O3E5IHBPVY5ZCPMJ4GHHV
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XR6UP2XONXOVXI4446VY72R63YRO2YTP
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-24303
- pillow.readthedocs.io https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html
- pillow.readthedocs.io https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
- security.gentoo.org https://security.gentoo.org/glsa/202211-10
- ubuntu.com https://ubuntu.com/security/notices/USN-5777-1
- ubuntu.com https://ubuntu.com/security/notices/USN-5777-2
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-24303
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.