1-minute read
What a defender needs to know
A crafted PDF or PostScript document can escape Ghostscript’s -dSAFER sandbox and execute code in an affected conversion worker. Sophos X-Ops reported a public proof of concept for CVE-2026-125396 and said there were no reports of active exploitation. The CVE Program identifies Ghostscript versions before 10.08.0 as affected.
The flaw sits in .putgstringcopy in gs_fonts.ps. A type error lets a crafted document recover the privileged .forceput operator; a use-after-free across save and restore then leads to code execution. The risk is concentrated where services feed outside documents into Ghostscript, including the upload or preview paths you actually operate.
Identify the installed build inside each conversion worker, including containers. Update to the fixed upstream release or your distribution’s corrected package, and restart the service. Until that package is available, hold untrusted-file conversion so Ghostscript does not process those documents. After updating, check the build in the running worker and pass a harmless document through the normal job route. Review job records and converter process starts for unexpected child processes if the service processed outside files before the fix. Public records provide no exploit-specific file indicator; use the conversion path and worker history to scope your investigation.