Skip to content- Sources: primary, discussion
- Summary: pwn.ai says CVE-2026-125396, a use-after-free in Ghostscript's Type 1 font loader, lets a crafted document leave the -dSAFER sandbox and run commands as the rendering process. It confirmed execution in Debian 13 CUPS through an anonymous IPP job, Roundcube on message view, MediaWiki PdfHandler, DokuWiki, Mayan EDMS and public WordPress upload forms, and traced Pillow paths in Gradio, ComfyUI and Paperless-ngx. Ghostscript 10.08.0 fixed it on 2026-09-08, Debian and Ubuntu ship fixed packages, and the CVE was published on 2026-11-09 as case studies begin.
- Why it matters: Any service that thumbnails, converts or prints user files can reach Ghostscript through ImageMagick or Pillow even for files named .png, so check the installed Ghostscript version on those hosts and images.
- Background: Ghostscript interprets PostScript and PDF, and its -dSAFER mode is meant to block file and process access from document code. ImageMagick delegates PDF, EPS and PS decoding to Ghostscript, and Pillow calls it for EPS files, so an image upload pipeline can feed an attacker's PostScript to the interpreter based on file content rather than extension. Ghostscript sandbox escapes have recurred for years for this reason.
- Comments: The Hacker News thread drew 55 points and 14 comments.