CVE-2016-3714: ImageMagick Improper Input Validation Vulnerability

Published May 3, 2016
·
Updated

A vulnerability was found in ImageMagick. Insufficient filtering for filename passed to delegate's command allows remote code execution during conversion of several file formats.

ImageMagick allows to process files with external libraries. This feature is called 'delegate'. It is implemented as a system() with command string ('command') from the config file delegates.xml with actual value for different params (input/output filenames etc). Due to insufficient %M param filtering it is possible to conduct shell command injection. One of the default delegate's command is used to handle https requests:

"wget" -q -O "%o" "https:%M"

where %M is the actual link from the input. It is possible to pass the value like https://example.com"|ls "-la and execute unexpected 'ls -la'. (wget or curl should be installed).

Other sources

ImageMagick contains an improper input validation vulnerability that affects the EPHEMERAL, HTTPS, MVG, MSL, TEXT, SHOW, WIN, and PLT coders. This allows a remote attacker to execute arbitrary code via shell metacharacters in a crafted image.

— CISA

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

— NVD

Affected Software

21 affected componentsFixes available
ImageMagick ImageMagick<=6.9.3-9
ImageMagick ImageMagick=7.0.0-0
ImageMagick ImageMagick=7.0.1-0
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=15.10
Canonical Ubuntu Linux=16.04
Debian Debian Linux=8.0
Debian Debian Linux=9.0
openSUSE Leap=42.1
openSUSE openSUSE=13.2
SUSE SUSE Linux Enterprise Server=12
ImageMagick ImageMagick
debian/graphicsmagick<1.3.24-1
1.3.24-1
debian/graphicsmagick<1.3.24-1
1.3.24-1
debian/graphicsmagick<1.3.24-1
1.3.24-1
debian/imagemagick<8:6.9.6.2+dfsg-2
8:6.9.6.2+dfsg-2
debian/imagemagick<8:6.9.6.2+dfsg-2
8:6.9.6.2+dfsg-2
debian/imagemagick<8:6.9.6.2+dfsg-2
8:6.9.6.2+dfsg-2
debian/graphicsmagick
1.3.16-1.1+deb7u11.3.20-3+deb8u21.3.24-1
debian/imagemagick
8:6.7.7.10-5+deb7u58:6.8.9.9-5+deb8u28:6.9.6.2+dfsg-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/graphicsmagick to a version that resolves this vulnerability.

    Fixed in 1.3.24-1
  2. Upgrade

    Upgrade debian/imagemagick to a version that resolves this vulnerability.

    Fixed in 8:6.9.6.2+dfsg-2
  3. Upgrade

    Upgrade debian/graphicsmagick to a version that resolves this vulnerability.

    Fixed in 1.3.16-1.1+deb7u1Fixed in 1.3.20-3+deb8u2Fixed in 1.3.24-1
  4. Upgrade

    Upgrade debian/imagemagick to a version that resolves this vulnerability.

    Fixed in 8:6.7.7.10-5+deb7u5Fixed in 8:6.8.9.9-5+deb8u2Fixed in 8:6.9.6.2+dfsg-2
  5. Upgrade

    Upgrade ImageMagick to a version that resolves this vulnerability.

    Fixed in 6.9.3-10
  6. Upgrade

    Upgrade ImageMagick to a version that resolves this vulnerability.

    Fixed in 7.0.1-1
  7. Compensating control

    Discontinue use of ImageMagick if the vendor mitigations are unavailable.

Event History

May 3, 2016
Data Sourced
10:48 AM
DescriptionSeverityAffected Software
May 5, 2016
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
06:59 PM
RemedyWeakness
Data Sourced
via NVD·06:59 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·06:59 PM
DescriptionSeverityAffected Software
Feb 4, 2021
Data Sourced
via Red Hat·12:56 AM
DescriptionSeverityAffected Software
Sep 9, 2024
Kev Listed
via CISA·12:00 AM
Data Sourced
via CISA·12:00 AM
RemedyDescriptionAffected Software
Data Sourced
via CISA·12:00 AM
Weakness
Updated
via CISA·12:00 AM
Affected Software
Sep 10, 2024
Updated
via NVD·01:00 AM
Affected Software
Sep 11, 2024
Updated
via NVD·11:11 AM
SeverityAffected Software
Nov 21, 2024
Updated
via NVD·02:50 AM
RemedyAffected Software
Jan 28, 2025
Updated
via NVD·06:49 PM
RemedyAffected Software
Updated
via NVD·06:49 PM
Affected Software
Apr 12, 2025
Updated
via NVD·10:46 AM
Affected Software
Oct 21, 2025
Updated
via NVD·07:16 PM
Affected Software
Oct 22, 2025
Updated
via NVD·12:15 AM
Affected Software
Event
via NVD·12:15 AM
Jul 24, 2026
News Published
via The Hacker News·11:45 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2016-3714?

CVE-2016-3714 is considered a critical vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2016-3714?

To fix CVE-2016-3714, you should update ImageMagick to a version later than 6.9.3-9 or 7.0.1-0.

3

What types of systems are affected by CVE-2016-3714?

CVE-2016-3714 affects ImageMagick versions up to 6.9.3-9 and 7.0.1-0 across various operating systems including Ubuntu, Debian, and openSUSE.

4

What attacks can exploit CVE-2016-3714?

CVE-2016-3714 can be exploited to perform arbitrary code execution by manipulating file formats processed by ImageMagick.

5

How can I determine if my system is vulnerable to CVE-2016-3714?

You can determine if your system is vulnerable to CVE-2016-3714 by checking the installed version of ImageMagick against the vulnerable versions listed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203