CVE-2026-3102: OS Command Injection in ExifTool SetMacOSTags on macOS
- Vendor
- Exiftool Project
CVE-2026-3102 is an OS command injection vulnerability in ExifTool 13.49 and earlier on macOS. The flaw is in the SetMacOSTags function in lib/Image/ExifTool/MacOS.pm, where an attacker-controlled metadata value used for macOS file creation date handling reaches a system() invocation without proper neutralization. The vulnerable path is triggered when ExifTool processes macOS creation-date tags such as MDItemFSCreationDate / FileCreateDate and invokes /usr/bin/setfile. Direct writes to FileCreateDate are normally validated, but an attacker can place a malicious raw value in a more permissive source tag such as DateTimeOriginal and then use -tagsFromFile to copy it into FileCreateDate. Exploitation requires the -n flag so ExifTool accepts raw machine-readable values and bypasses the normal PrintConvInv date validation. A crafted metadata value containing shell metacharacters, including injected quotes, can break the constructed command string and cause arbitrary shell command execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation results in arbitrary shell command execution in the security context of the user running ExifTool. In automated image-processing or metadata-ingestion workflows on macOS, this can allow remote compromise through a crafted image file, leading to malware deployment, data theft, persistence, and potential lateral movement depending on the privileges and surrounding environment. The issue is limited to the affected macOS-specific code path.
Mitigation
If you can’t patch tonight, do this now.
Until patching is complete, avoid processing untrusted images with vulnerable ExifTool versions on macOS, especially in workflows that use -n and metadata-copy operations such as -tagsFromFile. Isolate ExifTool execution in a sandboxed or otherwise restricted environment, run it with the lowest practical privileges, and restrict automated pipelines that ingest externally supplied files. Audit scripts and applications for embedded ExifTool instances and disable or constrain macOS metadata-writing paths where feasible.
Remediation
Patch, then assume compromise.
Upgrade ExifTool to version 13.50 or later. The upstream fix replaces string-based system command construction with argument-list invocation, eliminating shell interpretation of attacker-controlled metadata values. Where relevant, apply upstream patch e9609a9bcc0d32bd252a709a562fb822d6dd86f7 and verify that bundled or embedded ExifTool copies in third-party software are also updated.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-3102 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-3102 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-3102?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-3102, the earliest disclosed May 22, 2026.
- Is there a patch for CVE-2026-3102?
- Upgrade ExifTool to version 13.50 or later. The upstream fix replaces string-based system command construction with argument-list invocation, eliminating shell interpretation of attacker-controlled metadata values.
- What products are affected by CVE-2026-3102?
- Exiftool Project Exiftool.
- How severe is CVE-2026-3102?
- CVE-2026-3102 has a CVSS v4 score of 2.1 (Low) and an EPSS score of 3.3% (89th percentile) as of Sep 25, 2026.
Recent activity
42 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.