A flaw in Ghostscript, the open-source software that many web services use to render PDF and PostScript files for previews and printing, can let an attacker run commands on a server just by uploading a disguised file.
Researcher Paulos Yibelo of pwn.ai found the bug with help from AI and published full details and a working proof of concept on 21 November (US time). It is tracked as CVE-2026-125396.
How it works
- PostScript is a programming language as well as a page format, so Ghostscript runs it rather than just reading it.
- The attack hides PostScript inside a file named .pdf, .jpg or .png. Image libraries such as ImageMagick and Pillow judge files by their contents, not their names, and hand it to Ghostscript.
- The crafted file then switches off Ghostscript’s -dSAFER sandbox, iTnews reports.
Who is affected
The bug affects Ghostscript builds before version 10.08.0, which maintainer Artifex released on 8 September. iTnews notes that Linux distributions often backport fixes without changing the version number, so the number alone can mislead.
pwn.ai’s report lists affected setups including Debian 13 printing, Roundcube webmail, WordPress with certain upload plugins, MediaWiki, Paperless-ngx and Home Assistant. On Roundcube, simply viewing an email with a disguised attachment was enough, according to iTnews. Google closed a path into its document pipeline on 10 November, and WordPress shipped its own mitigation in August.
No attacks using the flaw have been reported. Desktop users are less exposed than web services that automatically process files from strangers.
What to do
Update Ghostscript, or confirm your distribution has backported the fix, on any server that processes uploaded documents or images. Yibelo suggests looking hardest at what happens after a file is accepted: thumbnails, metadata extraction, document import and print conversion.