Skip to content
NewA calmer, faster ZeroHour

Ghostscript Upload2Shell flaw runs commands via file previews

Original title: Hackers Could Execute Commands on WordPress, Email and Print Servers Through Upload2Shell Flaw

Cyber Security Newsby Guru Baran ()3 min read
Part of a story covered by 5 sourcesGhostscript Upload2Shell lets crafted uploads escape the sandboxMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

Researchers reached Ghostscript before 10.08.0 through WordPress, Roundcube, and unauthenticated CUPS jobs; no wild attacks are confirmed.

A use-after-free in Ghostscript’s Type 1 font loader, CVE-2026-125396, bypasses -dSAFER and runs commands with the renderer’s permissions. Paulos Yibelo and pwn.ai showed WordPress media previews, Roundcube thumbnails, and Debian CUPS jobs can deliver files to the bug. Artifex fixed upstream Ghostscript in 10.08.0. The report covers research tests, not confirmed exploitation.

Unconfirmed: Only research demonstrations are described; in-the-wild exploitation is unconfirmed, and some paths depended on tested policies and plugins.

Key facts
  • CVSS 4.0 is 8.5, with a local vector at the interpreter.
  • WordPress tracks its upload path as CVE-2026-65640, fixed in 7.0.4 and 6.9.7.
  • Roundcube 1.7.2 tests ran commands as www-data when mail was viewed.
  • Debian 13 CUPS tests wrote a marker file as the lp account.
  • Debian 13 first shipped the fix in 10.05.1~dfsg-1+deb13u2.
Security assessment · AI, from the articlePublic proof of concept

Impact: command execution as the renderer service account

ProductAffectedFixed in
Artifex Ghostscriptbefore 10.08.010.08.0
WordPress—7.0.4 and 6.9.7
Debian Ghostscript—10.05.1~dfsg-1+deb13u2
Roundcube1.7.2—
What to do
  1. 1.Update Ghostscript to 10.08.0 or the vendor package fixing CVE-2026-125396.
  2. 2.Apply WordPress core updates and review public forms that upload into the Media Library.
  3. 3.Require authentication on shared CUPS queues and pause untrusted automatic previews if patching waits.
Analyze CVE-2026-125396 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2026-125396
-dSAFER bypass and code execution in Ghostscript before 10.08.0
8.5<1%PoC ×2
CVE-2026-65640
Author-Level RCE in WordPress Core via Malicious Postscript File Upload
8.82%

From the original article

3 min read at cybersecuritynews.com

A flaw in Ghostscript let researchers run commands on WordPress, Roundcube webmail, and Linux print servers through routine file processing. The vulnerability, dubbed Upload2Shell and tracked as CVE-2026-125396, affects upstream Ghostscript releases before 10. 08.

Cyber Security News

By Guru Baran · cybersecuritynews.com

Read the full article at Cyber Security News

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.