CVE Tools

Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in Popular Apps

The Hacker NewsBy The Hacker News

Our summary

Security researchers at pwn.ai disclosed CVE-2026-125396, a use-after-free bug in Ghostscript's font-loading code that lets an attacker disable the -dSAFER sandbox and execute commands on the server processing a crafted file. Because many image and document libraries—ImageMagick, Pillow, libvips, Qt plugins—silently pass files to Ghostscript for rendering regardless of their extension, the firm showed roughly ten real-world applications, including Roundcube webmail, WordPress plugins Forminator and Essential Addons for Elementor, WordPress Core, and anonymous Debian print queues, could be abused through routine uploads, previews, or print jobs to reach the interpreter and run arbitrary commands. Artifex patched the flaw in Ghostscript 10.08.0 on September 8, and the advisory carries a CVSS score of 8.5; no in-the-wild exploitation has been reported. However, many Linux distributions—including Debian 12, Amazon Linux, and SUSE—still ship vulnerable or unpatched Ghostscript packages, and updating the host OS doesn't fix bundled copies inside containers or applications, so organizations should verify their actual renderer version, restrict upload file types, and apply sandboxing controls like AppArmor in the meantime.

Read at The Hacker News

The Hacker News publishes this story on its own site; we link to it rather than reprint it.

Worried this affects your company?

Discuss a security assessment of your internet-facing systems. Scope agreed before testing.

Check my exposure