First published: Tue May 03 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 `<a href="https://example.com">https://example.com</a>"|ls "-la` and execute unexpected 'ls -la'. (wget or curl should be installed).
Credit: secalert@redhat.com secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
ImageMagick ImageMagick | ||
ImageMagick ImageMagick | <=6.9.3-9 | |
ImageMagick ImageMagick | =7.0.0-0 | |
ImageMagick ImageMagick | =7.0.1-0 | |
Ubuntu | =12.04 | |
Ubuntu | =14.04 | |
Ubuntu | =15.10 | |
Ubuntu | =16.04 | |
Debian | =8.0 | |
Debian | =9.0 | |
openSUSE | =42.1 | |
openSUSE | =13.2 | |
SUSE Linux Enterprise Server | =12 |
http://git.imagemagick.org/repos/ImageMagick/blob/a01518e08c840577cabd7d3ff291a9ba735f7276/ChangeLog
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2016-3714 is considered a critical vulnerability due to its potential for remote code execution.
To fix CVE-2016-3714, you should update ImageMagick to a version later than 6.9.3-9 or 7.0.1-0.
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.
CVE-2016-3714 can be exploited to perform arbitrary code execution by manipulating file formats processed by ImageMagick.
You can determine if your system is vulnerable to CVE-2016-3714 by checking the installed version of ImageMagick against the vulnerable versions listed.