A critical vulnerability identified in Ghostscript allows attackers to bypass sandbox restrictions and achieve remote command execution (RCE) on host systems. Ghostscript remains the de facto document rendering engine across Linux servers, often invoked implicitly by libraries like ImageMagick to handle PDF, EPS, and PostScript parsing.
The attack vector involves crafting a document that exploits logic flaws inside Ghostscript's PostScript interpreter, circumventing protections historically enforced by the `-dSAFER` execution flag. By manipulating internal object states and file handler references, an uploaded payload can escalate out of the memory-isolated sandbox and spawn system shell processes with the privileges of the executing worker daemon.
While patches have been released, the widespread and often hidden deployment of Ghostscript creates a broad attack surface. Operations and platform security teams must immediately audit container base images, verify dependency trees, and isolate document processing services within disposable, network-isolated sandboxes with restricted seccomp profiles.