Skip to content
Server Security Center
KEVhigh8.4

CVE-2016-3714: ImageMagick Improper Input Validation

ImageMagick · listed in the CISA catalog of actively exploited vulnerabilities since 2024-09-09.

CVSS v3.1 (CVE record)
8.4
high
EPSS (exploit probability, 30 days)
97%
among the highest 0.1% of all CVEs
Added to CISA KEV
2024-09-09
US federal due date 2024-09-30
Ubuntu priority
medium

What is CVE-2016-3714?

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

CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

CISA notes

Upstream versions (CVE record)

Version ranges from CISA's enrichment of the CVE record (CPE-based); the record itself lists none.

  • imagemagick
    Affected
    • ≤ 6.9.3-9
    • 7.0.0-0
    • 7.0.1-0
    Fixed in
    not stated

    Version ranges from CISA ADP enrichment (CPE-based); the CNA record has none.

  • canonical ubuntu_linux
    Affected
    • 12.04
    • 14.04
    • 15.10
    • 16.04
    Fixed in
    not stated

    Version ranges from CISA ADP enrichment (CPE-based); the CNA record has none.

  • debian_linux
    Affected
    • 8.0
    • 9.0
    Fixed in
    not stated

    Version ranges from CISA ADP enrichment (CPE-based); the CNA record has none.

  • opensuse
    Affected
    • 13.2
    Fixed in
    not stated

    Version ranges from CISA ADP enrichment (CPE-based); the CNA record has none.

  • opensuse leap
    Affected
    • 42.1
    Fixed in
    not stated

    Version ranges from CISA ADP enrichment (CPE-based); the CNA record has none.

  • suse_linux_enterprise_server
    Affected
    • 12
    Fixed in
    not stated

    Version ranges from CISA ADP enrichment (CPE-based); the CNA record has none.

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

Check and fix on a server

Run on each Ubuntu or Debian server. Replace imagemagick with the source package from the table above (this CVE affects 2 source packages).

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="imagemagick"'

2. Compare each installed version with the fixed version for your release from the table

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the fix

sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="imagemagick"{print $1}')

Services keep running the old code until they are restarted – restart the affected service or check with needrestart.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-20 Improper Input Validation

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.