Today's cybersecurity headlines are brought to you by ThreatPerspective


Ethical Hacking News

Exposing the Vulnerability: A Deep Dive into the Ghostscript Sandbox-Escape RCE




A newly discovered vulnerability in Ghostscript allows attackers to escape the program's security sandbox and run commands on the server that processes it. This RCE exploit can be triggered through crafted file uploads in popular applications, including WordPress, ImageMagick, and libvips. The flaw was fixed by Artifex in version 10.08.0 on September 8, but the coverage across Linux distributions is uneven. To reduce exposure, it is recommended to require authentication on print queues, limit file types, and use system controls like AppArmor profiles. Updating the renderer is crucial to patching this vulnerability.

  • Ghostscript has been found vulnerable to a remote code execution (RCE) exploit through crafted file uploads.
  • The vulnerability allows an attacker to bypass the security sandbox and run commands on the server with low privileges.
  • The fix for the vulnerability is available in version 10.08.0, but its coverage across Linux distributions is uneven.
  • Updating the host operating system does not update a separate copy of Ghostscript bundled inside a container image or an application.
  • There are measures that can be taken to reduce exposure, such as requiring authentication on print queues and limiting file types accepted by image processors.
  • Researchers have published a proof-of-concept file that demonstrates the core memory trick and shows only the core memory trick.



  • Ghostscript, an interpreter widely used on Linux servers to convert uploaded PDFs, PostScript files, and images into other formats, has been found vulnerable to a remote code execution (RCE) exploit through crafted file uploads. This discovery was made by pwn.ai, a security firm that demonstrated the vulnerability in multiple applications, including WordPress, ImageMagick, and libvips. The flaw, tracked as CVE-2026-125396, was fixed by Artifex, the developer of Ghostscript, in version 10.08.0 on September 8.

    The underlying bug, a use-after-free issue in the part of Ghostscript that loads fonts, allows an attacker to switch off the security sandbox, -dSAFER, which prevents the document from running commands or reaching files. This security sandbox is supposed to protect the server from malicious scripts by isolating them in a separate environment. However, due to the vulnerability, an attacker can bypass this sandbox and run commands on the server with low privileges, potentially leading to unauthorized access or further malicious activities.

    The security firm pwn.ai conducted a series of tests to demonstrate the vulnerability, including feeding crafted documents through popular applications. The tests showed that the vulnerability can be exploited through various means, including print jobs, email attachments, and web uploads. The researchers found that several applications, including WordPress Core, required an account with the ability to upload files, which Authors and higher roles have by default.

    Artifex, the developer of Ghostscript, fixed the flaw in version 10.08.0 on September 8. The fix helps only where it reaches the renderer the application actually uses. Updating the host operating system does not update a separate copy of Ghostscript bundled inside a container image or an application. As a result, a document worker can keep running the old code after the host package is replaced.

    The coverage across Linux distributions is uneven, with some still shipping a vulnerable Ghostscript or having a fix pending. The list records package status, not a tested attack path for each system. The firm's survey revealed that Debian 12, Amazon Linux 2, 2023, and 2027 Preview, SUSE Linux Enterprise 12 SP5 and parts of 15, SUSE Linux Enterprise Server 16.0 and 16.1, openSUSE Leap 16.0 and 16.1, and Red Hat, Rocky Linux, AlmaLinux, Oracle Linux, and stable Fedora were affected. Red Hat, Rocky Linux, AlmaLinux, Oracle Linux, and stable Fedora's packages carry the fix, but it is not yet confirmed.

    Until the renderer is updated, the exposure can be reduced by requiring authentication on print queues and by limiting which file types an image processor accepts. System controls, such as AppArmor profiles, can also help stop the compromised interpreter from starting a shell. Researchers have published a proof-of-concept file that demonstrates the core memory trick and shows only the core memory trick. The file changes a value inside the running interpreter and sets it back, without running a shell command or touching files on the host, and on the patched 10.08.0 build, it fails before that point.

    The broader research by pwn.ai extended to production services, including Google, which fixed the affected path last week. The firm's reports of similar problems at Dropbox and other unnamed services are separate Ghostscript bugs, not this one. The researchers' findings highlight the importance of keeping software up-to-date and the need for a proactive approach to security.



    Related Information:
  • https://www.ethicalhackingnews.com/articles/Exposing-the-Vulnerability-A-Deep-Dive-into-the-Ghostscript-Sandbox-Escape-RCE-ehn.shtml

  • https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html


  • Published: Sun Nov 22 01:39:53 2026 by llama3.2 3B Q4_K_M













    © Ethical Hacking News . All rights reserved.

    Privacy | Terms of Use | Contact Us