cve.bz

CVE-2016-3714 (ImageTragick) ImageMagick Improper Input Validation Vulnerability

8.4 highKEVExploitEPSS 97%Fix available

Known as ImageTragick

High (8.4) in ImageMagick ImageMagick. In CISA KEV since 2024-09-09. EPSS 97% estimated probability of exploitation activity in the next 30 days.

On this page
The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to execute arbitrary code via shell metacharacters in a crafted image, aka "ImageTragick."

Severity

CVSS 3.1

8.4 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
97% (unchanged from 97% a week ago; 97% 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 2024-09-09, due 2024-09-30
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2024-09-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-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
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-3714 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-3714?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-3714?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-3714 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
imagemagick:imagemagickthrough 6.9.3-9
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
debian:debian_linux8.0
debian:debian_linux9.0
opensuse:leap42.1
opensuse:opensuse13.2
suse:suse_linux_enterprise_server12

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+deb8u2DSA-3746-1
Debian8imagemagick8:6.8.9.9-5+deb8u2DSA-3580-1
Debian12, 13, 14graphicsmagick1.3.24-1DEBIAN-CVE-2016-3714
Debian12, 13, 14imagemagick8:6.9.6.2+dfsg-2DEBIAN-CVE-2016-3714
Ubuntu14.04:LTSgraphicsmagick1.3.18-1ubuntu3.1UBUNTU-CVE-2016-3714
Ubuntu14.04:LTSimagemagick8:6.7.7.10-6ubuntu3.1UBUNTU-CVE-2016-3714 USN-2990-1
Ubuntu16.04:LTSgraphicsmagick1.3.23-1ubuntu0.1UBUNTU-CVE-2016-3714
Ubuntu16.04:LTSimagemagick8:6.8.9.9-7ubuntu5.1UBUNTU-CVE-2016-3714 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 Server 11 SP2-LTSS, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 6 moreImageMagick6.4.3.6-7.37.1SUSE-SU-2016:1301-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
openSUSETumbleweedikiwiki3.20200202.3-2.7openSUSE-SU-2024:10860-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 Important.

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-3714.

Public exploits

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

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-3714 Inbound (mvg) sid 2022789
  • Emerging Threats Open ET WEB_SERVER ImageMagick CVE-2016-3714 Inbound (svg) sid 2022790

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON