module

Ghostscript Command Execution via Format String

Disclosed
Mar 14, 2024

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.
Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.