A PDF or PostScript file sent through an affected Ghostscript converter can escape its -dSAFER sandbox and execute code. The flaw, CVE-2026-125396, puts document-ingestion services at risk when they process files from outside the organization. A public proof of concept described on November 21 makes this a practical patch-and-exposure question for teams that run those converters.

Sophos X-Ops reported the public proof of concept and said Artifex patched the issue in September. Sophos wrote, “There are no reports of active exploitation.” If an automated converter accepts outside documents, patch its worker or pause that input path. Sophos is also investigating whether its own products or services are affected.

A type error escapes SAFER

Ghostscript converts PostScript and PDF documents into other formats. Its -dSAFER mode restricts what a document can make the interpreter do. The CVE Program record, assigned by VulnCheck, locates the flaw in the .putgstringcopy procedure in gs_fonts.ps: it invokes the privileged .forceput operator without checking the operand types. A crafted document triggers a type error, recovers that operator through an error handler, and then uses a use-after-free across save and restore operations to reach code execution.

The document is the entry point. A service that accepts outside files and passes them to Ghostscript gives that document an execution path inside the conversion worker. The impact follows the worker’s privileges and access to local files and other services. The CVE record scores the flaw 8.5 under CVSS 4.0 and lists Ghostscript versions before 10.08.0 as affected; NVD’s record carries the same affected-version range.

Trace the conversion workers

Start with upload handlers, document-preview jobs, email-attachment conversion, and batch-processing queues that send externally supplied PDF or PostScript files to Ghostscript. Trace which of those paths actually invoke the interpreter in your environment. For each worker, identify the installed Ghostscript package and the executable it actually calls; a system package version and a container image may differ.

Compare that installed build with 10.08.0 for upstream Ghostscript. If your distribution backports security changes, use its security advisory and package changelog to identify the corrected build. Upgrade the affected worker to the appropriate fixed package and restart the conversion service so it runs the updated code.

Hold untrusted jobs until patched

Where an update is pending, stop sending untrusted documents to Ghostscript. Sophos recommends “preventing Ghostscript from processing untrusted files” until updates are available. Hold the upload or conversion queue for those files, or route them through a separate workflow that does not invoke the affected interpreter. Trace the route to the actual interpreter when setting this control.

After updating, inspect the Ghostscript version or distribution package inside the running worker, then run a harmless document through the normal conversion route and confirm it completes with that worker. For any previously exposed service, review converter process starts and job records around incoming documents, and investigate unexpected child processes under the conversion account. The public records provide no exploit-specific file indicator, so prioritize the worker’s actual inputs, execution history, and installed build.