Remote code execution in ImageMagick

Published: 2016-04-28 | Updated: 2017-02-21
Severity Critical
Patch available YES
Number of vulnerabilities 1
CVE ID CVE-2016-3714
CWE ID CWE-20
Exploitation vector Network
Public exploit This vulnerability is being exploited in the wild.
Vulnerable software ImageMagick Subscribe
Vendor ImageMagick.org

Security Advisory

This security advisory describes one critical risk vulnerability.

1) Input validation error

Severity: Critical

CVSSv3: 8.9 [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H/E:F/RL:O/RC:C] [PCI]

CVE-ID: CVE-2016-3714

CWE-ID: CWE-20 - Improper Input Validation

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists due to insufficient filtering for filename passed to delegate's command. A remote attacker can create a specially crafted image containing shell metacharacters, trick the victim into opening it via application using ImageMagick, will trigger an input validation flaw and execute arbitrary shell commands with privileges of the current user.

Successful exploitation of the vulnerability results in arbitrary code execution on the vulnerable system.

Note: the vulnerability was being actively exploited.

Mitigation

Update to version 6.9.3-10 or 7.0.1-1.

Vulnerable software versions

ImageMagick: 6.9.3-0, 6.9.3-1, 6.9.3-2, 6.9.3-3, 6.9.3-4, 6.9.3-5, 6.9.3-6, 6.9.3-7, 6.9.3-8, 6.9.3-10, 7.0.0-0, 7.0.1-0, 7.0.1-1

CPE External links

https://imagetragick.com/

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.