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

13 affected components
ImageMagick ImageMagick
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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ImageMagick to a version that resolves this vulnerability.

    Fixed in 6.9.3-10
  2. Upgrade

    Upgrade ImageMagick to a version that resolves this vulnerability.

    Fixed in 7.0.1-1

Event History

May 3, 2016
Data Sourced
via Red Hat·10:48 AM
DescriptionSeverityAffected Software
May 5, 2016
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Sep 9, 2024
Known Exploited
via CISA·12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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