🚨 A critical Ghostscript vulnerability allows attackers to execute commands on vulnerable servers through malicious file uploads, email attachments, and even network print jobs; CVE-2026-125396.
Security researchers at https://t.co/mnHZSdiU1j demonstrated that simply viewing a crafted email in Roundcube could trigger remote code execution without clicking the attachment. Similar attacks were successfully tested against Debian 13 print servers, WordPress, Forminator, Elementor, and other applications under specific configurations.
The vulnerability, dubbed Upload2Shell, carries a CVSS 4.0 score of 8.5 and affects Ghostscript's Type 1 font loader. Attackers can disguise malicious PostScript files as ordinary images or documents, exploit a memory corruption flaw, bypass Ghostscript's -dSAFER sandbox, and execute commands with the permissions of the affected service.
Researchers also identified vulnerable processing paths involving MediaWiki, DokuWiki, Plesk, and several document management systems. The attacks exploit how applications pass untrusted files to Ghostscript through image conversion and preview functions.
Artifex patched the underlying vulnerability in Ghostscript 10.08.0, released September 8, with additional fixes issued by affected software vendors and Linux distributions. Administrators are urged to install patched versions and verify that applications and containers are not using vulnerable Ghostscript builds.
Sources:
https://t.co/xGgA4BamCz
https://t.co/VRgQxuauOf
https://t.co/8afs1NFpTH
🚨 Ghostscript vulnerability Upload2Shell (CVE-2026-125396) lets a crafted PostScript document escape Ghostscript’s -dSAFER sandbox and run commands as the user that renders the document.
AlmaLinux 8, 9, and 10 are affected.
Test the patched packages 👇 https://t.co/S1wElkvWa4
Here it is... Upload2Shell. A reliably exploitable file-processing bug affecting applications that accept and process images/pdfs/data. Testing on random services confirm it's so unbelievably widespread
https://t.co/kGZzg8vBXL
Also on The New York Times homepage:
https://t.co/mGtrIHPc7f
👻 That image upload might be code in disguise.
Researchers turned crafted files into server command execution through Ghostscript (CVE-2026-125396) — shown across ~10 popular apps, from Roundcube webmail (no click, just opening the email) to CUPS print queues.
▸ Patched: Ghostscript 10.08.0
▸ But many Linux distros still lag
How it works ↓ https://t.co/oUFa7kmmau
Just woke up to a working PoC for Upload2Shell. It took my product 15 minutes to go from reading the blog to reproducing the vulnerability and validating the exploit.
Very happy with the progress so far.
Upload2Shell (CVE-2026-125396): a crafted PostScript or PDF file escapes Ghostscript's sandbox and runs commands.
Patch if your server renders outsiders' files: image previews, email thumbnails, print queues. No public exploit, no attacks. Fix: 10.08.0.
https://t.co/OI8dzwtE9b
this one is directly in my wheelhouse (was working on our ImageMagick-dependent app when this post came out lol)
this isn't like the Java one requiring AVX512 which was overblown. this one is huge and, not coincidentally, is gonna affect PHP apps again
UAF in PostScript Type 1 font interpreter lots of people use to process uploaded PDFs.
This vulnerability isn't your typical UAF because the exploit vector isn't normal memory corruption that would require an ASLR break to exploit: I guess I'd call it a confused-deputy attack that uses a UAF to confuse the PostScript interpreter into handing unprivileged code an object reference it shouldn't have. This exploit primitive allows the malicious code to use normal, boring, ordinary (if privileged) PostScript commands to start a shell or launch any other subprocess. No assembly required.
Look: this isn't hard. If some part of your program (video decoder, PDF renderer, CSR signer, whatever) parses untrusted input in some nontrivial way and is basically a pure function from that hunk-of-bytes input to some hunk-of-bytes output, it should run in a stateless sandbox that allows the code to execute that function and nothing else. seccomp is one approach.
In any sane implementation, an attacker would gain nothing by this exploit because the process running the interpreter would be in a sandboxed that granted no privileges except generating that hunk-of-bytes output. But I guess a lot of deployments aren't sane.
This is exactly the sort of vulnerability we've known for decades how to mitigate, but just... don't. It's not an AI million-IQ novel exploit class with side of GRH proof.
🚨 BREAKING: SECURITY RESEARCHERS FOUND A VULNERABILITY THAT CAN TURN A SIMPLE FILE UPLOAD INTO REMOTE CODE EXECUTION ACROSS MULTIPLE MAJOR PLATFORMS.
Dubbed Upload2Shell (CVE-2026-125396), the flaw affects Ghostscript, a widely used document-processing tool sitting behind everything from WordPress uploads and email previews to Linux printing services.
Researchers at pwnai demonstrated how malicious files could escape Ghostscript's -dSAFER sandbox and execute commands on vulnerable servers. They confirmed working attack paths involving Debian 13, WordPress, Roundcube, MediaWiki and several popular WordPress plugins. Their research also reached Google's production document-processing infrastructure.
Here's the scary part: attackers don't necessarily need to upload an obvious executable. A seemingly harmless image or PDF can reach Ghostscript through ImageMagick, triggering the vulnerable interpreter during routine processing. In one Roundcube test, simply viewing an email caused a malicious attachment to be processed. No attachment click was needed.
The flaw affects Ghostscript versions before 10.08.0, although patched distribution packages are also available. Not every installation is exposed, and there's no confirmed widespread exploitation in the wild. One vulnerable component. Multiple applications. Completely different ways to reach it.
Full technical breakdown, affected software, exploit chain and patches ↓
https://t.co/FPflgHScS6
#Upload2Shell #Ghostscript #WordPress #Linux #CyberSecurity
@PaulosYibelo tried covering it in a simpler manner with in-depth diagrams over here: https://t.co/96b5QpRBl1
Do check it out and let me know of any modifications is necessary
@AzureShenron@PaulosYibelo it's not 'only if you use GS'
it's 'only if you use ImageMagick and either (a) GS is installed as separate exe and you don't have the strictest IM policy or (b) GS is compiled into IM
it's not like some of the other recent ones requiring AVX512 etc, it's a very common setup