Summary
- CVE-2026-125396 allows malicious documents to circumvent Ghostscript's security sandbox and execute unauthorised commands.
- Downstream remediation remains uneven despite the availability of an upstream fix since September.
- Identifying affected infrastructure requires visibility into software dependencies and applications that process untrusted documents.
Organisations operating document processing infrastructure face renewed security concerns after Sophos published an advisory addressing a vulnerability in Ghostscript, a widely used software component incorporated into printing, document conversion, and image processing applications.
The advisory, published on 23 November, concerns CVE-2026-125396, a vulnerability identified by researchers as Upload2Shell. The weakness allows malicious documents to circumvent Ghostscript’s internal security restrictions and execute unauthorised commands with the privileges available to the affected process.
Researchers attribute the vulnerability to a memory management weakness within Ghostscript’s font processing functionality. Detailed findings were published over the weekend, prompting further security guidance from operating system distributors and technology suppliers.
Ghostscript, developed by Artifex, interprets PostScript and Portable Document Format (PDF) files. Its capabilities are frequently incorporated into other applications, allowing organisations to process documents without necessarily interacting with Ghostscript directly.
The vulnerability carries a severity score of 8.5 under version 4.0 of the Common Vulnerability Scoring System.
Although researchers have demonstrated exploitation, widespread attacks against production environments have not been established.
Exposure through application dependencies
Ghostscript’s incorporation into other software complicates assessments of the vulnerability because its presence may not be apparent to administrators responsible for the applications using it.
A document management service, for example, may rely on Ghostscript to convert uploaded files or generate previews while presenting users with an entirely separate application interface. The vulnerable component can consequently operate within infrastructure whose primary purpose appears unrelated to document interpretation.
Where those applications accept documents from external sources, the security of the underlying processing environment becomes particularly important. An attacker may be able to reach a vulnerable component through an application without obtaining direct access to the infrastructure on which it operates.
The consequences depend substantially on how the processing environment is configured. Restrictions on process permissions, access to sensitive information, and communication with other systems can limit the effects of unauthorised execution.
Conversely, document processing services with extensive privileges or insufficient isolation from other applications could create exposure beyond the component affected by the original vulnerability.
Remediation across the software ecosystem
Artifex addressed the weakness in Ghostscript 10.08.0, released in September. However, the availability of an upstream correction does not establish that every application or operating system distribution incorporating the component has received equivalent protection.
Software distributors frequently maintain established versions of upstream components, introducing individual security corrections to preserve compatibility with existing applications. Consequently, the displayed version of Ghostscript alone may not establish whether a particular installation remains vulnerable.
Additional guidance published by operating system distributors and hosting software providers this week reflects the different remediation arrangements across their respective environments.
Organisations assessing their exposure must therefore examine the security advisories associated with the software they actually operate. Updating directly managed servers may leave vulnerable components within independently maintained application images, commercial products, or externally operated services.
Where responsibility for document processing has been assigned to a technology supplier, customers may also need assurance that the affected components have been identified and appropriately remediated.
Maintaining sufficiently detailed software inventories can support those assessments, particularly where applications incorporate components that are not visible through conventional infrastructure management tools.
Until remediation has been established, restricting the processing of untrusted documents and isolating conversion infrastructure can help limit potential exposure. The upstream correction provides a route to addressing the vulnerability, but its effectiveness across enterprise environments depends on whether that protection has reached the applications and services using Ghostscript.




