LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2021-22204: ExifTool Remote Code Execution Vulnerability

RBRecent Breaches Vulnerability Intelligence·Nov 17, 2021
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Dec 1, 2021
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2021-22204 to its Known Exploited Vulnerabilities catalog on Nov 17, 2021, with a federal patch deadline of Dec 1, 2021 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

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

CVE-2021-22204 is a remote code execution vulnerability in Perl ExifTool. Improper neutralization of user data in the DjVu file format allows arbitrary code execution when the tool parses a malicious image. ExifTool is widely used to read and write metadata in images and other media, so any system that automatically processes untrusted files with it can be at risk. Teams should treat this as a high-priority parsing flaw and confirm exact fixed versions and deployment details against the vendor advisory.

How it works

The weakness is classified as CWE-95: improper neutralization of directives in dynamically evaluated code. In practical terms, ExifTool fails to adequately sanitize certain data embedded in DjVu-format files before that data influences code evaluation during parsing. An attacker who can supply a crafted DjVu image can cause the parser to execute attacker-controlled code in the context of the process running ExifTool.

Abuse typically requires the target to open or process the malicious file—common in workflows that automatically extract metadata from uploaded or inbound images. The CISA summary states that versions 7.44 and up are affected when parsing the malicious image; no further exploit mechanics are provided here, so defenders should not assume specific payloads or delivery methods beyond what the vendor advisory documents.

Am I affected? How to find it in your systems

Perl ExifTool commonly appears on servers and workstations that handle media pipelines: content-management systems, digital-asset management platforms, mail gateways that strip or inspect attachments, forensic and e-discovery tools, CI/CD jobs that process images, and developer or analyst laptops. It may be installed as a system package, a Perl module, a bundled binary inside another application, or a container image layer.

How to remediate

Patch first. Apply the updates provided by the vendor for ExifTool exactly as described in the vendor advisory and follow the CISA required action: apply updates per vendor instructions. After upgrading, restart any long-running services that load the tool and re-verify the running version.

Beyond the patch, harden the surrounding workflow:

If you can't patch immediately

Reduce exposure until the vendor update can be deployed:

If your data may have been exposed

Actively exploited parsing vulnerabilities can lead to full compromise of the processing host and subsequent data theft or lateral movement. Known ransomware use is not documented for this CVE, but that does not rule out other post-exploitation activity. If you have evidence of exploitation or uncertain exposure, follow your incident-response plan: isolate affected systems, preserve volatile evidence, rotate credentials that may have been accessible from the host, and review access logs for unusual activity. You can also run a free exposure scan of your email addresses against known breach data to see whether associated credentials or personal information have appeared in prior breaches while you complete containment and recovery.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedPerl · Exiftool
WeaknessCWE-95
Added to CISA KEVNov 17, 2021
Federal patch deadlineDec 1, 2021
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities