Exploit database

Vulnerability

CVE-2016-7976

Vulnerability details

Score
Not available
Severity
Not available

Vector string

Not available

Description

The PS Interpreter in Ghostscript 9.18 and 9.20 allows remote attackers to execute arbitrary code via crafted userparams.

CVE Program

Some CVE details could not be loaded. They will be retried.

Exploit source choices

1 source
ImageMagick Delegate Arbitrary Command Execution
MSF-unix--fileformat--imagemagick_delegateMetasploitUnix / remotePreferred

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