Ghostscript Upload2Shell (CVE-2026-125396): update to 10.08.0
Ghostscript Upload2Shell lets one crafted upload run commands on WordPress, Roundcube and CUPS servers. Update to Ghostscript 10.08.0 and rebuild containers.
If your server makes a thumbnail or preview from a file somebody uploaded, it may be running Ghostscript, and you may not know it. Researchers at pwn.ai have now published the full write-up of Upload2Shell (CVE-2026-125396): one crafted file switches off Ghostscript's -dSAFER sandbox and runs shell commands on the box. They proved it through public WordPress forms, a Roundcube inbox and an office print queue. The fix, Ghostscript 10.08.0, has been out since September 8. The question is whether your servers and containers actually have it.
What actually happened
The pwn.ai research write-up, dated November 21, describes a use-after-free in Ghostscript's Type 1 font loader. A crafted font lets the file write into memory and clear the flag that enforces -dSAFER's file-path checks. Then it runs a command as whatever user does the rendering: www-data on a web stack, lp on a print server. The VulnCheck advisory rates it 8.5 (High, CVSS 4.0) and lists every version before 10.08.0 as affected.
The pwn.ai impact index lists tested execution proofs, including:
- WordPress plugins: signed-out public upload forms in Forminator 1.55.1 and Essential Addons for Elementor Lite 6.7.0.
- WordPress core: any account with
upload_files(Author and up by default) on sites using Imagick and Ghostscript. WordPress fixed that route in 7.0.4 on August 12 (CVE-2026-65640), with backports to older branches. - Roundcube 1.7.2: an outside sender's message ran code when the recipient viewed it. The same path shows up in Plesk's bundled Roundcube.
- Debian 13 CUPS: an anonymous print job to a shared queue.
- MediaWiki, DokuWiki, Mayan EDMS and ResourceSpace through uploads or imported email.
There are no reports of attacks in the wild yet, and the public proof of concept shows memory control only, not a packaged shell. The Hacker News notes that ImageMagick, Pillow and libvips can all hand files to Ghostscript, even when the file is named .png or .jpg.
Why Ghostscript Upload2Shell matters for your business
The WordPress update is not the Ghostscript update. WordPress 7.0.4 closed one door. The public plugin forms and every other app on the same server still reach the vulnerable renderer until Ghostscript itself is patched.
Your distro may lag. In pwn.ai's November 12 check, Amazon Linux was still waiting on a fix and several SUSE lines were in progress. Run gs --version, then check your distro's security tracker. Don't assume.
Containers keep old copies. Patching the host does nothing for a Ghostscript baked into a Docker image. Rebuild and redeploy.
Cut the path if you don't need it. If nobody needs PDF or EPS previews, turn off the PostScript, EPS and PDF coders in ImageMagick's policy.xml. Put a login on shared print queues.
Key takeaways
- CVE-2026-125396 lets one crafted file bypass Ghostscript's -dSAFER sandbox and run commands
- Proven through public WordPress plugin forms, Roundcube, Plesk's Roundcube and CUPS print queues
- Fixed in Ghostscript 10.08.0 (September 8); WordPress 7.0.4 fixes only its own upload route
- Check gs --version on every host and rebuild container images
- Disable PDF/EPS rendering you don't use and require auth on print queues
Uploads are attacker input. We build file pipelines that allow-list formats, render previews in isolated workers with no shell and no network, and keep base images rebuilt on schedule. Ask us to audit your upload and preview paths, or see what we build.
Sources: pwn.ai Upload2Shell research, pwn.ai impact index, VulnCheck advisory, WordPress 7.0.4 release, The Hacker News.
- #ghostscript
- #cve-2026-125396
- #wordpress
- #security
- #file-uploads
Tommy Rush — Founder, Rush Commerce
Operator turned builder. 15+ years running operations — now shipping the systems businesses run on. More
Get The Rush Report weekly — one email, zero fluff.
Keep reading
Ternary Bonsai 2.5 27B: 75.6% SWE-bench in 5.9 GB
PrismML's Ternary Bonsai 2.5 27B claims 75.6% on SWE-bench Verified in a 5.9 GB Apache 2.0 model. A local coding agent on one GPU is now worth testing.
Read itMicrosoft Code Red after Exchange Online outage: memos
Microsoft declared a Code Red after its 24-hour Exchange Online outage. The memos show 11,000 messages in 11 Teams chats. Fix your incident process first.
Read it