Ghostscript sandbox escape vulnerability can lead to server RCE
11/23/2026
A Ghostscript sandbox escape vulnerability can allow malicious uploaded files to execute commands on the server; a fixed version has been released.
[Key points]
•Vulnerability ID CVE-2026-125396; Artifex has fixed it in 10.08.0, and there are no reports of exploitation in the wild yet.
•pwn.ai demonstrated that approximately ten common applications can be triggered via upload, preview, or printing, bypassing the -dSAFER sandbox.
•The root cause is a use-after-free in font loading; the attack executes commands under a low-privilege rendering account.
[Impact]
•Linux services that use Ghostscript to convert PDF, PostScript, or images are affected, and some entry points require no login.
•WordPress 7.0.4 has separately fixed the upload path, but this cannot replace updating Ghostscript.
[Recommendations]
1.Upgrade Ghostscript to 10.08.0 as soon as possible, and check for copies bundled in containers or applications.
2.Upgrade WordPress sites to 7.0.4, and restrict the file types accepted by image processors.
3.Enable authentication for print queues; system controls such as AppArmor can be used to reduce risk.