Path traversal in ExifTool - CVE-2022-23935

 

Path traversal in ExifTool - CVE-2022-23935

Published: February 20, 2022 / Updated: February 12, 2023


Vulnerability identifier: #VU60721
CSH Severity: Medium
CVSS v4: 8.7 [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]
CVE-ID: CVE-2022-23935
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

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

The vulnerability exists due to input validation error when processing directory traversal sequences within the file names within lib/Image/ExifTool.pm. A remote attacker can pass a specially crafted file name to the application and read arbitrary files on the system.


Affected software

ExifTool
Gentoo Linux
Fedora
perl-Image-ExifTool
media-libs/exiftool

How to mitigate CVE-2022-23935

Install update from vendor's website.

ExifTool - update to 12.38
perl-Image-ExifTool - addressed in versions 12.38-1.el7, 12.38-1.el8, 12.38-1.fc34, 12.38-1.fc35
media-libs/exiftool - update to 12.42

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins