module

Ghostscript Command Execution via Format String

Disclosed
2024-03-14
Created
2024-07-19

Description

This module exploits a format string vulnerability in Ghostscript
versions before 10.03.1 to achieve a SAFER sandbox bypass and execute
arbitrary commands. This vulnerability is reachable via libraries such as
ImageMagick.

This exploit only works against Ghostscript versions 10.03.0 and
10.01.2. Some offsets adjustement will probably be needed to make it
work with other versions.

Authors

Thomas Rinsma
Christophe De La fuente

Platform

Linux,Unix,Windows

Architectures

cmd, x86, x64

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/multi/fileformat/ghostscript_format_string_cve_2024_29510
msf exploit(ghostscript_format_string_cve_2024_29510) > show targets
...targets...
msf exploit(ghostscript_format_string_cve_2024_29510) > set TARGET < target-id >
msf exploit(ghostscript_format_string_cve_2024_29510) > show options
...show and set options...
msf exploit(ghostscript_format_string_cve_2024_29510) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.