CVE DatabaseCVE-2016-3715
한국어 권고문 →
CVE-2016-37155.5/MEDIUMCISA KEVCWE-552

ImageMagick EPHEMERAL Coder Arbitrary File Deletion Vulnerability (CVE-2016-3715)

⚡ Jump to Patch
Affected Vendors
imagemagick
Affected Components
imagemagick
Published Date
2016-05-05
CVSS v3.1
5.5
MEDIUM
EPSS (30d)
75.3%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

ImageMagick before version 6.9.3-10 and 7.x before version 7.0.1-1

Impact

Remote attackers can delete arbitrary files on the system by tricking the application into processing a crafted image

Mitigation

Upgrade ImageMagick to the latest secure versions (6.9.3-10+, 7.0.1-1+) or disable the EPHEMERAL coder via policy.xml

Affected Products & Version Scope

ImageMagick versions prior to 6.9.3-10 and 7.x versions prior to 7.0.1-1

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The recommended remediation is to upgrade ImageMagick to the latest patched version.

bash
# For Debian/Ubuntu-based systems
sudo apt-get update
sudo apt-get install --only-upgrade imagemagick -y

# For RedHat/CentOS-based systems
sudo yum update imagemagick -y

2. Temporary Workaround & Hardening Configuration

If upgrading immediately is not feasible, you must disable the vulnerable EPHEMERAL coder by modifying the global policy.xml configuration file.

bash
# Locate and edit the policy.xml file (typically in /etc/ImageMagick/ or /etc/ImageMagick-6/)
sudo nano /etc/ImageMagick-6/policy.xml

# Add the following policy rule inside the <policymap> block:
# <policy domain='coder' rights='none' pattern='EPHEMERAL' />

3. Log Audit & IoC Verification Commands

Use the following commands to verify the installed ImageMagick version and ensure the mitigation policy is correctly applied.

bash
# Check the currently installed ImageMagick version
convert -version

# Verify if the EPHEMERAL coder restriction is active in the policy
convert -list policy | grep -i 'EPHEMERAL'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Snyk Open Source & Container Security
Immediately upgrade ImageMagick to a secure version or disable the EPHEMERAL coder in policy.xml to prevent arbitrary file deletion.

Scan Your Repositories for Transitive Vulnerable Dependencies in 30 Seconds

Automatically detect vulnerable packages across npm, PyPI, Maven, and Go, and open automated fix Pull Requests without breaking your build.

Free Forever Tier · 1-Click GitHub/GitLab Auto-PR
Master DevSecOps: Automated SAST/SCA in GitHub Actions & Kubernetes
View Course Curriculum

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability exists due to a design flaw in the 'EPHEMERAL' pseudo-protocol coder within ImageMagick. The EPHEMERAL coder is intended to automatically delete the original input file after processing is complete. However, because it lacks proper validation and sandboxing of the input file path, an attacker can supply a crafted image file referencing arbitrary system paths, leading to unauthorized file deletion (CWE-552) under the privileges of the ImageMagick process.

2. Exploitation Mechanics & Attack Scenario

An attacker crafts an image file containing a reference to the EPHEMERAL protocol, such as 'ephemeral:/path/to/target/file'. When a web application processes this uploaded image using ImageMagick (e.g., for thumbnail generation), the library invokes the EPHEMERAL coder. Upon completion of the image processing, the coder executes a deletion command on the specified target path, mistaking it for a temporary file. This allows remote, unauthenticated attackers to delete critical files if they can upload or trigger the processing of malicious images.

3. Infrastructure & Business Impact

This vulnerability is listed on the CISA KEV (Known Exploited Vulnerabilities) catalog, indicating active exploitation in the wild. Successful exploitation can lead to a severe Denial of Service (DoS) by deleting critical application source code, configuration files, or database files. If the web server process runs with elevated privileges (such as root), the entire operating system's integrity and availability can be compromised.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2016-3715)

FAQ

Q1. How critical is CVE-2016-3715 and is it actively exploited in the wild?

CVE-2016-3715 is rated CVSS 5.5 (MEDIUM) with a 30-day EPSS exploitation probability of 75.3%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2016-3715?

Primary impacted vendors include imagemagick across imagemagick. Scope summary: ImageMagick versions prior to 6.9.3-10 and 7.x versions prior to 7.0.1-1

Q3. What temporary mitigations or workarounds exist for CVE-2016-3715 before patching?

[Mitigation] Upgrade ImageMagick to the latest secure versions (6.9.3-10+, 7.0.1-1+) or disable the EPHEMERAL coder via policy.xml Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2016-3715

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (imagemagick)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2016-3715 ImageMagick EPHEMERAL Coder Arbitrary File Deletion Vulnerability (CVE-2016-3715) (CVSS 5.5) - Patch & Workaround | CVE Pulse