Rapid7 Vulnerability & Exploit Database

Ghostscript Type Confusion Arbitrary Command Execution

Back to Search

Ghostscript Type Confusion Arbitrary Command Execution

Disclosed
04/27/2017
Created
05/30/2018

Description

This module exploits a type confusion vulnerability in Ghostscript that can be exploited to obtain arbitrary command execution. This vulnerability affects Ghostscript versions 9.21 and earlier and can be exploited through libraries such as ImageMagick and Pillow.

Author(s)

  • Atlassian Security Team
  • hdm <x@hdm.io>

Platform

Unix

Architectures

cmd

Development

References

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/unix/fileformat/ghostscript_type_confusion
msf exploit(ghostscript_type_confusion) > show targets
    ...targets...
msf exploit(ghostscript_type_confusion) > set TARGET < target-id >
msf exploit(ghostscript_type_confusion) > show options
    ...show and set options...
msf exploit(ghostscript_type_confusion) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;