Code Injection in ExifTool - CVE-2021-22204

 

Code Injection in ExifTool - CVE-2021-22204

Published: May 3, 2021 / Updated: June 21, 2024


Vulnerability identifier: #VU52794
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-22204
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation when parsing DjVu files in ExifTool. A remote attacker can pass a specially crafted file to the application and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

ExifTool
Gentoo Linux
Fedora
Ubuntu
libimage-exiftool-perl (Debian package)
libimage-exiftool-perl (Ubuntu package)
perl-Image-ExifTool
media-libs/exiftool

How to mitigate CVE-2021-22204

Install updates from vendor's website.

ExifTool - update to 12.24
libimage-exiftool-perl (Debian package) - update to 11.16-1+deb10u1
libimage-exiftool-perl (Ubuntu package) - addressed in versions 10.80-1ubuntu0.1, 11.88-1ubuntu0.1, 12.05-1ubuntu0.1, 12.16+dfsg-1ubuntu0.1
perl-Image-ExifTool - addressed in versions 12.16-3.el7, 12.16-3.el8, 12.16-3.fc32, 12.16-3.fc33, 12.16-3.fc34
media-libs/exiftool - update to 12.42

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins