🛒 Arduino, ESP32 & modules
Ghostscript sandbox-escape RCE via crafted uploads in popular apps

Ghostscript sandbox-escape RCE via crafted uploads in popular apps

pwn.ai showed how ordinary upload and print features in many apps can trigger Ghostscript sandbox-escape RCE via crafted documents.

November 23, 20262 min read15 tags

A newly disclosed issue in Ghostscript shows how ordinary upload, preview, and print features in common applications can lead to remote code execution (RCE) on the server. Security firm pwn.ai demonstrated that a crafted document can be passed through about ten popular applications and, in each case, trigger a command on the server under the low‑privilege account that performs the rendering.

The flaw is tracked as CVE-2026-125396 and was fixed on September 8. There have been no reports so far of it being used in real‑world attacks.

How the bug breaks the sandbox

The underlying problem is a use-after-free bug in the Ghostscript component that loads fonts. A specially crafted document abuses this bug to switch off the checks enforced by -dSAFER, the sandbox that is supposed to prevent documents from running commands or accessing files.

Once those checks are disabled, the attacker‑controlled document can cause a command to run on the server, even though it is processed by a low‑privilege rendering account.

WordPress in the attack chain

WordPress had already closed its own upload path on August 12 in version 7.0.4, under a separate identifier, CVE-2026-65640, as noted in its release notes. That fix and the Ghostscript fix cover different points in the same chain, so updating one does not remove the need for the other. Both the application (such as WordPress) and Ghostscript itself need to be updated to fully close the demonstrated attack path.


Source: Gündəm · thehackernews.com