CVE DatabaseCVE-2016-3718
한국어 권고문 →
CVE-2016-37185.5/MEDIUMCISA KEVCWE-918CWE-918

ImageMagick HTTP/FTP Coders Server-Side Request Forgery (SSRF) Vulnerability (CVE-2016-3718)

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

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

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

Impact

Remote attackers can exploit this vulnerability to conduct Server-Side Request Forgery (SSRF) attacks, scanning internal networks and accessing restricted local services

Mitigation

Upgrade ImageMagick to the latest patched version or disable HTTP/FTP coders via the policy.xml configuration file

Affected Products & Version Scope

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

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Update ImageMagick to the latest secure version using your system package manager.

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

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

2. Temporary Workaround & Hardening Configuration

If upgrading immediately is not feasible, mitigate the risk by disabling the vulnerable HTTP and FTP coders in the policy.xml configuration file.

xml
<!-- Add the following rules inside the <policymap> section of /etc/ImageMagick/policy.xml -->
<policymap>
  <policy domain='coder' rights='none' pattern='HTTP' />
  <policy domain='coder' rights='none' pattern='HTTPS' />
  <policy domain='coder' rights='none' pattern='FTP' />
</policymap>

3. Log Audit & IoC Verification Commands

Verify the installed ImageMagick version and ensure that the mitigation policies are correctly applied.

bash
# Check the current ImageMagick version
convert -version | grep -E 'ImageMagick [0-9]'

# Verify if HTTP/FTP coders are restricted in the active policy
convert -list policy | grep -E -i 'HTTP|FTP'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Immediately upgrade ImageMagick to the latest version or disable HTTP/FTP coders in policy.xml to mitigate SSRF risks.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability arises due to insufficient input validation within the HTTP and FTP input coders of ImageMagick when handling external resources. ImageMagick allows fetching remote images via URLs during image processing. If an attacker supplies a crafted image containing malicious URLs pointing to internal network addresses or local loopback interfaces, the server processes the request without proper validation, leading to Server-Side Request Forgery (SSRF, CWE-918).

2. Exploitation Mechanics & Attack Scenario

An attacker targets web applications that allow user-supplied image uploads. By embedding a URL such as 'http://127.0.0.1:8080/internal-api' or 'ftp://10.0.0.1/data' inside the image metadata or reference paths, the attacker tricks the ImageMagick library into initiating outbound network requests to these restricted destinations during image parsing. This bypasses perimeter firewalls and exposes internal services.

3. Infrastructure & Business Impact

As a vulnerability listed in the CISA KEV catalog, this flaw has been actively exploited in the wild. Successful exploitation allows attackers to map internal network topologies, access sensitive internal endpoints, and potentially pivot to execute further attacks, posing a severe threat to corporate data confidentiality and infrastructure security.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2016-3718)

FAQ

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

CVE-2016-3718 is rated CVSS 5.5 (MEDIUM) with a 30-day EPSS exploitation probability of 75.6%. 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-3718?

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

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

[Mitigation] Upgrade ImageMagick to the latest patched version or disable HTTP/FTP coders via the policy.xml configuration file 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-3718

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-3718 ImageMagick HTTP/FTP Coders Server-Side Request Forgery (SSRF) Vulnerability (CVE-2016-3718) (CVSS 5.5) - Patch & Workaround | CVE Pulse