Vulnerability record · CVE-2016-3715 · published 5 May 2016
CVE-2016-3715: ImageMagick EPHEMERAL coder allows arbitrary file deletion
Redhat · Enterprise Linux Desktop
The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 lets a crafted image cause deletion of arbitrary files. This is part of the ImageTragick family of coder flaws and matters because image processing is often exposed to untrusted input, allowing destructive file operations on the host.
Description
The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary files via a crafted image.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Automated analysis
high priorityIt is in CISA KEV with a very high EPSS score and public exploit code, though the CVSS impact is limited to file deletion.
What it is
The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 lets a crafted image cause deletion of arbitrary files. This is part of the ImageTragick family of coder flaws and matters because image processing is often exposed to untrusted input, allowing destructive file operations on the host.
Impact
An attacker can delete files the ImageMagick process can write to, causing data loss or denial of service. There is no confidentiality or integrity gain beyond the deletion itself per the CVSS vector.
Attack surface
Reached by supplying a crafted image to an application that uses ImageMagick for conversion or thumbnailing. The CVSS vector requires user interaction (UI:R) and no privileges (PR:N), and is scored local (AV:L), so the image must be opened or processed on the target.
Exploitation
CISA KEV lists it as exploited in the wild since 2021-11-03, and EPSS is very high at 0.754 (99.5th percentile). Public exploit references exist (Exploit-DB 39767 and a vendor forum post).
What to do
- Upgrade ImageMagick to 6.9.3-10 or 7.0.1-1 or later, or apply the vendor patch referenced in the ImageMagick ChangeLog.
- Apply distribution updates from Red Hat, Ubuntu, Debian, SUSE, Oracle or Gentoo advisories for the affected packages.
- Disable or restrict the EPHEMERAL coder and other risky coders via policy.xml where the full coder set is not needed.
- Run ImageMagick processing in a sandbox or container with a read-only filesystem and minimal write permissions.
- Validate and re-encode untrusted images before passing them to ImageMagick.
Detection
- Monitor for ImageMagick processes deleting files outside expected output directories.
- Alert on image files containing EPHEMERAL coder directives or other coder references in content.
- Audit application logs for image processing errors or unexpected file removals correlated with uploads.
- Track ImageMagick versions in use and flag hosts still running pre-6.9.3-10 or pre-7.0.1-1 builds.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2016-3715 to the Known Exploited Vulnerabilities catalog on 3 November 2021 as "ImageMagick Arbitrary File Deletion Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 3 May 2022.
Affected products
30 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2016-3715 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2016-3715), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.