Threat Advisory

Safe Mode Bypass in Ghostscript Enables Arbitrary Code Execution

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: High
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Multiple security vulnerabilities have been identified in Ghostscript and services that pass documents to it, including WordPress media upload handling, webmail thumbnail generation, and network print processing. The flaws affect upstream Ghostscript releases and can allow an attacker to cause command execution on systems that process untrusted files, even when the renderer is not directly exposed. The overall risk is high because routine preview, thumbnail, and print workflows can deliver malicious documents to vulnerable code.

CVE-2026-125396: A use-after-free in the Ghostscript Type 1 font loader can bypass renderer safety restrictions while processing a document. Although the flaw is described with a local attack vector, network-facing services can pass remotely supplied files to it, allowing command execution with the renderer’s service permissions.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Multiple security vulnerabilities have been identified in Ghostscript and services that pass documents to it, including WordPress media upload handling, webmail thumbnail generation, and network print processing. The flaws affect upstream Ghostscript releases and can allow an attacker to cause command execution on systems that process untrusted files, even when the renderer is not directly exposed. The overall risk is high because routine preview, thumbnail, and print workflows can deliver malicious documents to vulnerable code.

CVE-2026-125396: A use-after-free in the Ghostscript Type 1 font loader can bypass renderer safety restrictions while processing a document. Although the flaw is described with a local attack vector, network-facing services can pass remotely supplied files to it, allowing command execution with the renderer’s service permissions.[emaillocker id="1283"]

CVE-2026-65640: A WordPress core upload issue can allow users with media upload privileges to submit files that reach the vulnerable document renderer through the media preview process. By default, Authors and higher roles have the required privileges, so a compromised or malicious account can trigger processing of a crafted file.

These vulnerabilities collectively present a high risk of remote command execution on systems that process untrusted documents through preview, thumbnail, or print features. The most exposed environments are web applications, webmail systems, and network print services that pass user-supplied files to a document renderer. Organizations should prioritize identifying which document-processing components are used by exposed services and restrict untrusted document handling where possible.

RECOMMENDATION:

We recommend you to update Ghostscript to version 7.0.4, 10.08.0 depending on your installed branch.

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu