ExifTool Command Injection Lets Malicious Images Compromise Macs
Vulnerability Disclosure · 3 sources · Updated 5mo ago · First seen May 20, 2026

Kaspersky GReAT disclosed CVE-2026-3102, a command injection flaw in ExifTool that can let a malicious image trigger arbitrary shell commands on macOS. The bug affects ExifTool 13.49 and earlier and was fixed in 13.50. According to the report, the issue lies in the SetMacOSTags function, where an unsanitized date value can reach a system() call that invokes /usr/bin/setfile, allowing shell interpretation of attacker-controlled metadata.
Exploitation requires a crafted workflow in which ExifTool is run with the -n flag, bypassing PrintConvInv date sanitization, and the -tagsFromFile feature is used to copy a malicious value from a permissive source tag such as DateTimeOriginal into FileCreateDate. The vulnerable path is specific to macOS, but successful exploitation can fully compromise the user account processing the image. The February patch replaced string-based command construction with argument-list execution and added a wrapper to preserve prior I/O redirection behavior while removing the shell injection risk.

