Shell in the Ghost: Ghostscript CVE202328879 writeup
A heap buffer overflow in Ghostscript's BCPEncode filter allows an attacker to corrupt stream structures and achieve remote code execution. The exploit uses PostScript to leak heap memory and write to the path_control_active variable, disabling the sandbox and enabling command execution.
Artifex Ghostscript