CVE-2022-24303

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

published March 28, 2022

CVSS
—
EPSS
3%
Percentile
85.8
In the wild
Unconfirmed
What it is

⚠️ A little space can cause a big mess! The Pillow library mishandles spaces in temporary pathnames, allowing attackers to delete files. 😱 Think of it like a restaurant that misreads an order because one ingredient is listed with a space, leading to a disastrous mix-up—your favorite dish could end up in the trash! An attacker could exploit this vulnerability to delete critical files from the server, potentially causing significant disruptions to your application. Imagine losing important data just because a space slipped through the cracks!

Put simply

Think of it like a restaurant that misreads an order because one ingredient is listed with a space, leading to a disastrous mix-up—your favorite dish could end up in the trash! This vulnerability in Pillow (prior to version 9.0.1) arises from improper handling of spaces in temporary pathnames, enabling attackers to delete files they shouldn’t have access to.

What to do

An attacker could exploit this vulnerability to delete critical files from the server, potentially causing significant disruptions to your application. Imagine losing important data just because a space slipped through the cracks! Update Pillow to version 9.0.1 or later immediately to close this loophole. Additionally, review your code for any other areas where file handling might be improperly managed. You’ve got this! Just follow the steps, and you'll keep your application safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02691 · 85.8th percentile
Published
2022-03-28T00:00Z
EPSS history
Timeline
  • 28 MAR 00:00Z
    Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled
    cvelistv5