CVE-2022-24303Python Pillow
Critical 9.1 No auth needed
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 2.4% probability of exploitation in 30 days · percentile 85
- Auth required
- No
- Published
- Mar 28, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
What happens
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
What to do
- Apply the vendor's security update for Pillow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
< 9.0.1 |
9.0.1 |
pip install "pillow>=9.0.1" |
| PyPI | pillow |
< 9.0.1 |
9.0.1 |
pip install "pillow>=9.0.1" |
Per OSV / GitHub Advisories (GHSA-9j59-75qj-795w, PYSEC-2022-168). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | < 9.0.1 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- pillow.readthedocs.io Release Notes Vendor Advisory
- security.gentoo.org Third Party Advisory