Path traversal in Pillow - CVE-2022-22815

 

Path traversal in Pillow - CVE-2022-22815

Published: January 25, 2022


Vulnerability identifier: #VU60001
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-22815
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Affected software:
Pillow
Gentoo Linux
Ubuntu
openEuler
Fedora
pillow (Debian package)
python-pil (Ubuntu package)
python3-pil (Ubuntu package)
python3-pillow-tk
python3-pillow-help
python3-pillow
python-pillow-debuginfo
python3-pillow-qt
python3-pillow-devel
python-pillow-debugsource
python-pillow
mingw-python-pillow
dev-python/pillow
IBM Cloud Pak for Business Automation

Detailed vulnerability description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences in path_getbbox() function in path.c. A remote attacker can send a specially crafted HTTP request and read arbitrary files on the system.


How to mitigate CVE-2022-22815

Install update from vendor's website.

Sources