Artifex (Ghostscript) · Ghostscript, as used by WordPress, Roundcube, CUPS print servers and other software that previews uploaded files · CVE-2026-125396
Upload2Shell: a Ghostscript flaw lets an uploaded file run commands on WordPress and other servers
Ghostscript is the behind-the-scenes tool many servers use to turn PDF and PostScript files into previews and thumbnails. A flaw in versions before 10.08.0 lets a crafted file break out of Ghostscript's safe mode and run commands on the server. Researchers at pwn.ai, who call it Upload2Shell, showed it can be reached through ordinary upload features: the WordPress media library (WordPress fixed its side as CVE-2026-65640), public upload forms in the Forminator and Essential Addons for Elementor plugins in the set-ups they tested, Roundcube webmail attachments and shared CUPS print queues. No attacks have been reported so far.
- Affected
- Ghostscript before 10.08.0, including copies bundled inside container images and application packages. On WordPress, the core flaw affects every version before 7.0.4 on servers that use Imagick with Ghostscript, and needs an account with Author rights or higher; the plugin routes the researchers tested needed no login. Debian 12 and 13 and Ubuntu have issued fixed packages; the researchers found several other Linux distributions still working on theirs in mid November.
- What to do
- Update Ghostscript to 10.08.0 or your Linux distribution's patched package (Debian 13: 10.05.1~dfsg-1+deb13u2 or later; Debian 12: 10.0.0~dfsg-11+deb12u9; Ubuntu: see USN-8949-1), and ask your host whether they have done so if you do not manage the server. Update WordPress to 7.0.4, or to the fixed release on your branch (6.9.7, 6.8.8 and so on back to 4.7.35). Updating WordPress alone does not fix Ghostscript. Until both are done, the researchers suggest switching off automatic previews for files from people you do not trust and reviewing public forms that accept uploads; on print servers, require a login for shared queues.General information summarised from the vendor's advisory at the time of writing, not professional advice. Check the vendor's current advisory before acting.
- Why it’s here
- Reaches WordPress sites, webmail and print servers through everyday file uploads, with detailed research now public and many servers still carrying an old Ghostscript.
