Ghostscript Upload2Shell flaw runs commands via file previews
Original title: Hackers Could Execute Commands on WordPress, Email and Print Servers Through Upload2Shell Flaw
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.
- 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.
Impact: command execution as the renderer service account
| Product | Affected | Fixed in |
|---|---|---|
| Artifex Ghostscript | before 10.08.0 | 10.08.0 |
| WordPress | — | 7.0.4 and 6.9.7 |
| Debian Ghostscript | — | 10.05.1~dfsg-1+deb13u2 |
| Roundcube | 1.7.2 | — |
- 1.Update Ghostscript to 10.08.0 or the vendor package fixing CVE-2026-125396.
- 2.Apply WordPress core updates and review public forms that upload into the Media Library.
- 3.Require authentication on shared CUPS queues and pause untrusted automatic previews if patching waits.
- Vendors
- Artifex
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| 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.8 | 2% |
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.
By Guru Baran · cybersecuritynews.com
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.