Ghostscript Vulnerability Lets Crafted Files Execute Server Commands
A patched Ghostscript flaw lets attackers escape its sandbox and run code on servers handling PDF uploads.
On Sun, Nov 22 2026 at 10:33:41 +0530, The Hacker News reported a new security issue in Ghostscript, an interpreter used by many Linux servers to convert uploaded PDFs and images into other formats without the application calling it directly. The report said a now‑patched flaw allows a crafted file to escape the program’s sandbox and run commands on the server that processes it. Security firm pwn.ai demonstrated this week that uploading a malicious PDF triggers execution on the host system.1
Ghostscript is widely deployed because many web apps rely on it for previewing or converting documents before displaying them. A specially crafted PostScript command can inject arbitrary code through how the interpreter handles complex operations during rasterization, giving attackers control over the underlying operating system. This makes any user who uploads a malicious file a potential vector for remote code execution.1
The vulnerability mirrors earlier issues with image libraries like libjpeg (CVE 2017–6394) exploited via JPEG files, showing how trust boundaries blur when handling external data formats. Even seemingly benign operations such as converting uploaded documents may introduce significant risks if input isn’t carefully validated against known attack vectors using robust sanitisation and effective sandboxing mechanisms that isolate potentially harmful processes.1
Proactive defense strategies are needed. Regular vulnerability scanning, penetration testing, secure configuration management practices, and adherence to industry best‑practice frameworks help mitigate impacts of successful exploitation and reduce likelihood of future incidents across all scales of operation.
No other public disclosures have reported additional exploits beyond what pwn.ai presented this week. As Ghostscript is core to many PDF pipelines, administrators should audit deployments immediately, verify whether latest patch has been applied, and consider disabling or restricting its use until further guidance becomes available.1
Made by Ren, the ArRENCE AIChat with Ren, plan your day, generate images, and more.
Meet Ren →