PyPI: pillow

CVE-2022-24303

Safety vulnerability ID: SFTY-20220328-28468

Safety legacy ID: pyup.io-45356

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

Created at: Nov 6, 2025Updated at: Nov 6, 2025

Overview

Path traversal in Pillow

Advisory

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

Affected Package

Affecting pillow package, versions
<9.0.1

Also affects

---

How to Fix

Upgrade
pillow
to
9.0.1
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

References

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more