Exploit database

Vulnerability

CVE-2016-3714

Vulnerability details

Score
8.4
Severity
high

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

CVE Program

Exploit source choices

4 sources
ImageMagick Delegate Arbitrary Command Execution
MSF-unix--fileformat--imagemagick_delegateMetasploitUnix / remote

This module exploits a shell command injection in the way "delegates" (commands for converting files) are processed in ImageMagick versions <= 7.0.1-0 and <= 6.9.3-9 (legacy). Since ImageMagick uses file magic to detect file format, you can create a .png (for example) which is actually a crafted SVG (for example) that triggers the command injection. The PostScript (PS) target leverages a Ghostscript -dSAFER bypass (discovered by taviso) to achieve RCE in the Ghostscript delegate. Ghostscript versions 9.18 and later are affected. This target is provided as is and will not be updated to track additional vulns. If USE_POPEN is set to true, a |-prefixed command will be used for the exploit. No delegates are involved in this exploitation.

2016-05-03imagemagick_delegate.rb
hood3drob1n/cve-2016-3714
GH-054535c25bbc79d7774b6c753de3d38cGitHubUnofficial GitHub source

ImaegMagick Code Execution (CVE-2016-3714)

2016-05-073 files · 70 stars