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
CVE-2016-3714 explained
CVE-2016-3714, known as "ImageTragick", is an improper input validation flaw in several ImageMagick coders, including EPHEMERAL, HTTPS, MVG, MSL, TEXT, SHOW, WIN and PLT. A crafted image containing shell metacharacters can lead to arbitrary code execution. CISA lists it as known to be exploited, so systems that process untrusted images need attention.
Impact
An attacker who gets a crafted image processed by an affected ImageMagick version can run arbitrary code with the privileges of the processing program. The CVSS vector rates this as local attack vector with low complexity, no privileges and no user interaction required. A successful attack gives a high impact on confidentiality, integrity and availability. The description notes remote attackers can trigger it, for example when a service converts uploaded images.
Who is affected
ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 are affected. On Ubuntu 14.04 LTS, fixes exist for imagemagick (8:6.7.7.10-6ubuntu3.1) and graphicsmagick (1.3.18-1ubuntu3.1). On Ubuntu 16.04 LTS, fixes exist for imagemagick (8:6.8.9.9-7ubuntu5.1) and graphicsmagick (1.3.23-1ubuntu0.1). All fixes are in the standard archive. Both releases are end of life.
Written with AI from the data on this page and checked against it automatically.
Official description
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
- This vulnerability affects a common open-source component, third-party library, or a protocol used by different products. For more information, please see: imagemagick.org/discourse-server/viewtopic.php, imagemagick.org/archive/releases; nvd.nist.gov/vuln/detail/CVE-2016-3714
Upstream versions (CVE record)
Version ranges from CISA's enrichment of the CVE record (CPE-based); the record itself lists none.
- imagemagickAffectedFixed in
- ≤ 6.9.3-9
- 7.0.0-0
- 7.0.1-0
not statedVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none.
- canonical ubuntu_linuxAffectedFixed in
- 12.04
- 14.04
- 15.10
- 16.04
not statedVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none.
- debian_linuxAffectedFixed in
- 8.0
- 9.0
not statedVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none.
- opensuseAffectedFixed in
- 13.2
not statedVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none.
- opensuse leapAffectedFixed in
- 42.1
not statedVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none.
- suse_linux_enterprise_serverAffectedFixed in
- 12
not statedVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none.
| Product | Affected | Fixed in |
|---|---|---|
| imagemagickVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none. |
| not stated |
| canonical ubuntu_linuxVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none. |
| not stated |
| debian_linuxVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none. |
| not stated |
| opensuseVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none. |
| not stated |
| opensuse leapVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none. |
| not stated |
| suse_linux_enterprise_serverVersion ranges from CISA ADP enrichment (CPE-based); the CNA record has none. |
| not stated |
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.
Ubuntu 16.04 LTS·graphicsmagick
ESM ended
Fixed: 1.3.23-1ubuntu0.1
Ubuntu 16.04 LTS·imagemagick
ESM ended
Fixed: 8:6.8.9.9-7ubuntu5.1
Ubuntu 14.04 LTS·graphicsmagick
ESM ended
Fixed: 1.3.18-1ubuntu3.1
Ubuntu 14.04 LTS·imagemagick
ESM ended
Fixed: 8:6.7.7.10-6ubuntu3.1
What to do
- Update
imagemagickandgraphicsmagickto at least the fixed versions listed for your release. - Restart services and applications that process images so they load the updated libraries.
- Plan an upgrade from Ubuntu 14.04 LTS and 16.04 LTS, which are end of life, to a supported release.
- Restrict which image formats and coders untrusted input may use, following the vendor guidance.
- Review which systems accept user-supplied images and limit their network exposure.
Written with AI from the data on this page and checked against it automatically.
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" ;; esac3. 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
Questions about CVE-2016-3714
- Is CVE-2016-3714 exploited in practice?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2024-09-09. Whether it has been used in ransomware campaigns is listed as unknown.
- Why is
graphicsmagicklisted alongsideimagemagick? - Ubuntu published fixes for both source packages on 14.04 LTS and 16.04 LTS. Update both if they are installed.
- My release is end of life. Is updating enough?
- Install the fixed packages, but Ubuntu 14.04 LTS and 16.04 LTS are end of life. Upgrade to a supported release to keep receiving security fixes.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
Other advisories
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-22. Always confirm with the vendor's or distribution's advisory before patching.