CVE-2021-22204 ExifTool Remote Code Execution

Exploited in the wild Medium 6.8 Published Updated

Attackers can execute arbitrary code by tricking users into processing a malicious DjVu image with ExifTool.

Exploited in the wild
Since 17 Nov 2021
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-22204?

CVE-2021-22204 is a medium-severity code injection vulnerability in Debian Debian Linux, published on 23 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Improper neutralization of user data in the DjVu file format in ExifTool versions 7.44 and up allows arbitrary code execution when parsing the malicious image

Weakness: CWE-94

Which versions are affected by CVE-2021-22204?

It affects 3 products.

Linux distribution packages (3)
perl-Image-ExifTool SUSE:Package Hub 15 SP1All versions12.25-bp152.4.3.1
perl-Image-ExifTool SUSE:Package Hub 15 SP2All versions12.25-bp152.4.3.1
perl-Image-ExifTool openSUSE:Leap 15.2All versions12.25-bp152.4.3.1

Products include Debian Debian Linux, Exiftool Project Exiftool, Fedoraproject Fedora.

How do I fix CVE-2021-22204?

Upgrade to a fixed version. US federal agencies must fix it by 1 Dec 2021.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-22204 being exploited?

Yes. Attackers have exploited CVE-2021-22204 in the wild since at least 17 Nov 2021.

Public exploit code: 2 Metasploit modules, 1 Exploit-DB entry and 16 proofs of concept on GitHub.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-22204, DLA-2663-1, DSA-4910-1, GHSA-9377-7hwr-p4w6, MGASA-2021-0259, UBUNTU-CVE-2021-22204 and 3 more.

Is CVE-2021-22204 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free