CVE-2026-125396, Ghostscript before 10.08.0 (Upload2Shell): a font-loader use-after-free breaks the -dSAFER sandbox, and pwn.ai reaches it from an anonymous print job, a viewed Roundcube attachment and public WordPress upload forms; fixed since 2026-09-08, no exploitation reported (CVSS 4.0 8.5)
Ghostscript CVE-2026-125396: print jobs, Roundcube attachments and upload forms reach the sandbox escape; update
Defender actions
- Update Ghostscript to 10.08.0 or a distribution build that carries the CVE-2026-125396 fix (Debian 12 10.0.0~dfsg-11+deb12u9, Debian 13 10.05.1~dfsg-1+deb13u2, Ubuntu per USN-8949-1) on every Roundcube mail server, CUPS print server and web server with public upload forms, and rebuild the container images that bundle their own copy, because pwn.ai reached the sandbox escape from an anonymous print job, a viewed email attachment and public upload forms, and a host package update does not reach a bundled copy.
Analysis
Artifex fixed CVE-2026-125396 in Ghostscript 10.08.0 on 2026-09-08 (The Hacker News, 2026-11-22). The CVE record says the .putgstringcopy procedure in the font loader calls the privileged .forceput operator without checking operand types, so a crafted PostScript or PDF document triggers a type error, recovers .forceput through a custom error handler and causes a use-after-free across save and restore that executes arbitrary code; VulnCheck scores it CVSS 4.0 8.5 with a local attack vector (VulnCheck, 2026-11-09). pwn.ai's writeup of 2026-11-21 shows the flaw is reachable from the network because applications pass untrusted files to Ghostscript indirectly, through ImageMagick, Pillow, libvips or a print filter, even when the file is named like an image or a PDF (pwn.ai, 2026-11-21; The Hacker News, 2026-11-22).
pwn.ai ran a command as the rendering account through an anonymous IPP print job to a shared CUPS queue on Debian 13 (as the lp user), through an emailed attachment declared as a JPEG but holding PostScript that a Roundcube 1.7.2 user only had to view, with a permissive ImageMagick delegate required (as www-data), and through public WordPress upload forms in Forminator, a public PDF field storing to the Media Library, and in Essential Addons for Elementor, a public registration widget with an upload field (pwn.ai, 2026-11-21). WordPress closed its own upload path in 7.0.4 on 2026-08-12 under CVE-2026-65640, a different point in the same chain (The Hacker News, 2026-11-22). No source reports exploitation, and the one published proof-of-concept file shows only the core memory trick and fails on 10.08.0 (The Hacker News, 2026-11-22).
Debian's tracker lists fixed packages for bookworm (10.0.0~dfsg-11+deb12u9), trixie (10.05.1~dfsg-1+deb13u2) and unstable (Debian Security Tracker, 2026-11-23). pwn.ai records Ubuntu fixes for seven releases in USN-8949-1 of 2026-10-21, a notice that predates the CVE assignment and carries no CVE number, and, as of 2026-11-12, Amazon Linux fixes pending and several SUSE branches affected or in progress (pwn.ai, 2026-11-21). Updating the host does not update a separate copy of Ghostscript bundled inside a container image or an application (The Hacker News, 2026-11-22).
Cited evidence
was fixed on September 8, and there have been no reports of it being used in attacks.
An attacker only had to send a crafted email to someone using the Roundcube server and have the recipient view the message.
Requiring authentication on the queue blocked the unauthenticated submission.
which calls the privileged .forceput operator without checking operand types
Sources4
AI-generated · no human review · this permalink is the shareable record for the finding · verify operationally critical claims against the linked primary source.