TUE 24 NOV 2026
Home / Vulnerabilities

Upload2Shell Vulnerability Enables Command Execution on WordPress, Roundcube and Linux Print Servers

Researchers demonstrated how a Ghostscript memory flaw could let attackers execute commands through routine document processing on exposed services.

AC By
22 Nov 2026, 05:44 · 3 min read
The Upload2Shell vulnerability allows attackers to execute operating system commands through document processing features
The Upload2Shell vulnerability allows attackers to execute operating system commands through document processing… Image: Leonardo

The Upload2Shell vulnerability allows attackers to execute operating system commands through document processing features on WordPress, Roundcube webmail and Linux print servers.

A research published by Paulos Yibelo and pwn.ai on November 17, 2026 disclosed.

Tracked as CVE-2026-125396, the vulnerability affects upstream Ghostscript releases before 10.08.0. Researchers demonstrated that remotely supplied files could reach vulnerable Ghostscript components through preview, thumbnail generation and printing functions without requiring direct network access to the renderer.

The \[\[CVE record\]\] assigns the vulnerability a CVSS 4.0 score of 8.5 and identifies a local attack vector. However, that classification describes the interpreter-level flaw rather than the network-facing routes researchers demonstrated.

The findings describe security research demonstrations, not confirmed exploitation in real-world attacks.

Memory flaw undermines Ghostscript security protections

Ghostscript processes PDF and PostScript documents, including instructions contained in PostScript files.

Its -dSAFER mode is designed to restrict the resources those instructions can access.

Upload2Shell exploits a use-after-free memory vulnerability in Ghostscript’s Type 1 font loader. The problem involves insufficient validation of incoming data before an operation capable of triggering an error.

Researchers used the resulting memory corruption to interfere with Ghostscript’s security checks while -dSAFER remained enabled, allowing their test commands to execute with the renderer’s permissions.

This does not automatically grant root privileges. The level of access depends on the account running the affected service.

WordPress, Roundcube and CUPS demonstrated attack paths

On WordPress installations using Imagick and ImageMagick, researchers reached Ghostscript through the media preview process. The related WordPress upload vulnerability is tracked separately as CVE-2026-65640 and requires media upload privileges, available by default to Authors and higher roles.

WordPress addressed this route in version 7.0.4 and backported the fix to version 6.9.7. Researchers also demonstrated unauthenticated paths through certain public upload features in Forminator and Essential Addons for Elementor under the configurations tested.

Roundcube 1.7.2 presented another route. An attacker could send an attachment without possessing a webmail account. When the recipient viewed the message, Roundcube generated a thumbnail and passed the attachment through ImageMagick to Ghostscript. No attachment download or click was required. The demonstrated command executed under the www-data account.

On Debian 13, researchers also demonstrated command execution through a shared CUPS print queue accepting unauthenticated network print jobs. The test document triggered Ghostscript processing, allowing a marker file to be written under the lp service account.

Ghostscript update addresses the underlying flaw

Artifex fixed Upload2Shell in Ghostscript 10.08.0. However, Linux distributions may backport security fixes without adopting the same upstream version number. Debian 13, for example, first included the fix in 10.05.1~dfsg-1+deb13u2.

Administrators should check their distribution’s security advisories for CVE-2026-125396 and verify the Ghostscript package used by every affected service. Existing containers and application bundles must also be checked because updating the host does not automatically update their bundled copies.

WordPress administrators should apply the relevant core and renderer updates, inspect public upload integrations and consider disabling automatic previews of untrusted files until patching is complete.

Print server operators should require authentication for shared queues, restrict network access and isolate document-processing services.

Organizations should trace the components responsible for generating previews, thumbnails and printed documents, then confirm that each uses a patched Ghostscript installation.

AC

Covers zero-days, CVEs, security advisories and software patches. Alex reports on newly discovered vulnerabilities, actively exploited flaws and security updates, explaining their potential impact on affected systems.

Related stories