cve.bz

CVE-2016-3718 (ImageTragick) ImageMagick Server-Side Request Forgery (SSRF) Vulnerability

5.5 mediumKEVExploitEPSS 76%Fix available

Known as ImageTragick

Medium (5.5) in ImageMagick ImageMagick. In CISA KEV since 2021-11-03. EPSS 76% estimated probability of exploitation activity in the next 30 days.

On this page
The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct server-side request forgery (SSRF) attacks via a crafted image.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
EPSS
76% (unchanged from 76% a week ago; 76% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2021-11-03, due 2022-05-03
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: partial, assessed 2025-02-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-3718 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-3718?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-3718?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-3718 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_eus6.7
redhat:enterprise_linux_eus7.2
redhat:enterprise_linux_eus7.3
redhat:enterprise_linux_eus7.4
redhat:enterprise_linux_eus7.5
redhat:enterprise_linux_eus7.6
redhat:enterprise_linux_eus7.7
redhat:enterprise_linux_for_ibm_z_systems6.0_s390x
redhat:enterprise_linux_for_ibm_z_systems7.0_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus6.7_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus7.2_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus7.3_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus7.4_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus7.5_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus7.6_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus7.7_s390x
redhat:enterprise_linux_for_power_big_endian6.0_ppc64
redhat:enterprise_linux_for_power_big_endian7.0_ppc64
redhat:enterprise_linux_for_power_big_endian_eus6.7_ppc64
redhat:enterprise_linux_for_power_big_endian_eus7.2_ppc64
redhat:enterprise_linux_for_power_big_endian_eus7.3_ppc64
redhat:enterprise_linux_for_power_big_endian_eus7.4_ppc64
redhat:enterprise_linux_for_power_big_endian_eus7.5_ppc64
redhat:enterprise_linux_for_power_big_endian_eus7.6_ppc64
redhat:enterprise_linux_for_power_big_endian_eus7.7_ppc64
redhat:enterprise_linux_for_power_little_endian7.0_ppc64le
redhat:enterprise_linux_for_power_little_endian_eus7.2_ppc64le
redhat:enterprise_linux_for_power_little_endian_eus7.3_ppc64le
redhat:enterprise_linux_for_power_little_endian_eus7.4_ppc64le
redhat:enterprise_linux_for_power_little_endian_eus7.5_ppc64le
redhat:enterprise_linux_for_power_little_endian_eus7.6_ppc64le
redhat:enterprise_linux_for_power_little_endian_eus7.7_ppc64le
redhat:enterprise_linux_hpc_node6.0
redhat:enterprise_linux_hpc_node7.0
redhat:enterprise_linux_hpc_node_eus7.2
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.2
redhat:enterprise_linux_server_aus7.3
redhat:enterprise_linux_server_aus7.4
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_aus7.7
redhat:enterprise_linux_server_from_rhui6.0
redhat:enterprise_linux_server_from_rhui7.0
redhat:enterprise_linux_server_supplementary_eus6.7z
redhat:enterprise_linux_server_tus7.2
redhat:enterprise_linux_server_tus7.3
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_server_tus7.7
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0
imagemagick:imagemagickbefore 6.9.3-10
imagemagick:imagemagick7.0.0-0
imagemagick:imagemagick7.0.1-0
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux15.10
canonical:ubuntu_linux16.04
oracle:linux6
oracle:linux7
oracle:solaris10
oracle:solaris11.3
suse:linux_enterprise_debuginfo11:sp2
suse:linux_enterprise_debuginfo11:sp3
suse:linux_enterprise_debuginfo11:sp4
suse:manager2.1
suse:manager_proxy2.1
suse:openstack_cloud5
opensuse:leap42.1
opensuse:opensuse13.2
suse:linux_enterprise_desktop12
suse:linux_enterprise_desktop12:sp1
suse:linux_enterprise_server11:sp2
suse:linux_enterprise_server11:sp3
suse:linux_enterprise_server11:sp4
suse:linux_enterprise_server12
suse:linux_enterprise_server12:sp1
suse:linux_enterprise_software_development_kit11:sp4
suse:linux_enterprise_software_development_kit12
suse:linux_enterprise_software_development_kit12:sp1
suse:linux_enterprise_workstation_extension12
suse:linux_enterprise_workstation_extension12:sp1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7graphicsmagick1.3.16-1.1+deb7u1DLA-484-1
Debian7imagemagick8:6.7.7.10-5+deb7u5DLA-486-1
Debian8graphicsmagick1.3.20-3+deb8u3DLA-1401-1
Debian8imagemagick8:6.8.9.9-5+deb8u2DSA-3580-1
Debian12, 13, 14graphicsmagick1.3.24-1DEBIAN-CVE-2016-3718
Debian12, 13, 14imagemagick8:6.9.6.2+dfsg-2DEBIAN-CVE-2016-3718
Ubuntu14.04:LTSgraphicsmagick1.3.18-1ubuntu3.1UBUNTU-CVE-2016-3718
Ubuntu14.04:LTSimagemagick8:6.7.7.10-6ubuntu3.1UBUNTU-CVE-2016-3718 USN-2990-1
Ubuntu16.04:LTSgraphicsmagick1.3.23-1ubuntu0.1UBUNTU-CVE-2016-3718
Ubuntu16.04:LTSimagemagick8:6.8.9.9-7ubuntu5.1UBUNTU-CVE-2016-3718 USN-2990-1
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moreImageMagick, ImageMagick-c++, ImageMagick-doc and 4 more0:6.7.2.7-4.el6_7RHSA-2016:0726
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreImageMagick, ImageMagick-c++, ImageMagick-doc and 4 more0:6.7.8.9-13.el7_2RHSA-2016:0726
SUSELinux Enterprise Desktop 12, Linux Enterprise Desktop 12 SP1, Linux Enterprise Server 12 and 7 moreImageMagick6.8.8.1-19.1SUSE-SU-2016:1260-1
SUSELinux Enterprise Server 11 SP2-LTSS, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 6 moreImageMagick6.4.3.6-7.34.1SUSE-SU-2016:1275-1
SUSELinux Enterprise Software Development Kit 11 SP4, Studio Onsite 1.3GraphicsMagick1.2.5-4.35.1SUSE-SU-2016:1276-1
openSUSETumbleweedGraphicsMagick1.3.25-1.1openSUSE-SU-2024:10505-1
openSUSETumbleweedImageMagick6.9.6.6-1.1openSUSE-SU-2024:10040-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Details can be found under the resolve tab at https://access.redhat.com/security/vulnerabilities/2296071

Red Hat Enterprise Linux 6 and 7

================================

As a workaround the /etc/ImageMagick/policy.xml file can be edited to disable processing of MVG, HTTPS, HTTP, URL, FTP, EPHEMERAL, MSL, LABEL, TEXT,

SHOW, WIN and PLT commands within image files, simply add the following lines:

<policy domain="coder" rights="none" pattern="EPHEMERAL" />

<policy domain="coder" rights="none" pattern="HTTPS" />

<policy domain="coder" rights="none" pattern="HTTP" />

<policy domain="coder" rights="none" pattern="URL" />

<policy domain="coder" rights="none" pattern="FTP" />

<policy domain="coder" rights="none" pattern="MVG" />

<policy domain="coder" rights="none" pattern="MSL" />

<policy domain="coder" rights="none" pattern="TEXT" />

<policy domain="coder" rights="none" pattern="LABEL" />

<policy domain="coder" rights="none" pattern="SHOW" />

<policy domain="coder" rights="none" pattern="WIN" />

<policy domain="coder" rights="none" pattern="PLT" />

<policy domain="path" rights="none" pattern="@*" />

within the policy map stanza:

<policymap>

...

</policymap>

Red Hat Enterprise Linux 5

==========================

In the following folders:

/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/ (64bit package)

or

/usr/lib/ImageMagick-6.2.8/modules-Q16/coders/ (32bit package)

Rename the following files:

* mvg.so to mvg.so.bak

* msl.so to msl.so.bak

* label.so to label.so.bak

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6ImageMagick-0:6.7.2.7-4.el6_7Fixed 2016-05-09RHSA-2016:0726
Red Hat Enterprise Linux 7ImageMagick-0:6.7.8.9-13.el7_2Fixed 2016-05-09RHSA-2016:0726
Red Hat Enterprise Linux 5ImageMagickWill not fix
Red Hat OpenShift Enterprise 2ImageMagickAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-3718.

Public exploits

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET WEB_SERVER ImageMagick CVE-2016-3718 SSRF Inbound (mvg + fill + url) sid 2022791

Attack patterns (CAPEC)

  • CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON