TL;DR

Ghostscript before 10.08.0 lets a crafted PostScript or PDF file leave the -dSAFER sandbox and run arbitrary code (CVE-2026-125396). pwn.ai ran commands through upload, email and print features. It says files named .png or .jpg can still reach Ghostscript through image conversion. Ghostscript 10.08.0 of 2026-09-08 fixes it. Update Ghostscript on every host and in every container image that renders uploads.

What happened

  • The flaw. The VulnCheck CNA record, published 2026-11-09, describes a -dSAFER bypass in Ghostscript's font loading that ends in arbitrary code execution. It scores it 8.5 (CVSS 4.0, AV:L, UI:P). The CISA enrichment of 2026-11-10 records Exploitation "none".
  • The fix. Ghostscript's release page dates 10.08.0 to 2026-09-08. The record lists everything before 10.08.0 as affected.
  • The research. pwn.ai (Paulos Yibelo) calls it Upload2Shell and published its index of application paths, last updated 2026-11-18. It reached Hacker News on 2026-11-21 and The Hacker News on 2026-11-22.

The record rates the flaw local. The Hacker News says the firm's tests reached Ghostscript from the network "via print jobs, email, and web uploads". It says ImageMagick, Pillow, libvips or a Qt plugin will hand PostScript or EPS content to Ghostscript, and that this happens "even when the file is named .png, .jpg, or .pdf".

What pwn.ai recorded

pwn.ai says "the first ten entries record Upload2Shell execution". They include Debian 13 CUPS print queues, Roundcube 1.7.2, the WordPress plugins Forminator 1.55.1 and Essential Addons for Elementor Lite 6.7.0, MediaWiki with PdfHandler, DokuWiki, Mayan EDMS 4.11.5, ResourceSpace 11.0, WordPress Core and Plesk Obsidian. Several needed no login. The index marks the case study and proof of concept for each of them "Not published".

For the tools this audience runs, the index records less:

Product What pwn.ai records Execution recorded
Gradio 6.32.0 with Pillow 13.0.0 an unauthenticated gr.Image app loaded EPS bytes named .png through Pillow, and Ghostscript started before the app function ran no, a handoff to the renderer
InvokeAI upload calls Pillow, mapped in source no
AUTOMATIC1111 Stable Diffusion WebUI Gradio image preprocessing through Pillow, mapped in source no
ComfyUI preview opens the uploaded file with Pillow, mapped in source no
django-filer image model opens the file with Pillow, listed as a "source candidate" no
Paperless-ngx PDF/A conversion calls Ghostscript directly, mapped in source no

pwn.ai's words: Gradio "records a live HTTP-to-Ghostscript handoff" and "the remaining entries map application code to image-processing sinks".

Fixes outside Ghostscript

  • WordPress 7.0.4 closed its upload path under CVE-2026-65640. The record requires Imagick and Ghostscript on the server and a user with the upload_files capability.
  • Roundcube 1.6.20 and 1.7.5 removed SVG and EPS from accepted image types under CVE-2026-114727.
  • pwn.ai says Debian 13's fixed security build is 10.05.1~dfsg-1+deb13u3 of 2026-10-10, and that Ubuntu published fixed packages in USN-8949-1 on 2026-10-21.
  • The Hacker News, citing pwn.ai's survey, lists Debian 12 as vulnerable, and Amazon Linux, SUSE Linux Enterprise and openSUSE Leap as pending or affected "as of last week". It says the firm did not establish the status of Red Hat, Rocky Linux, AlmaLinux, Oracle Linux or stable Fedora packages. The distribution trackers were not opened for this file.

Am I affected?

You are exposed when all three hold:

  1. Ghostscript older than 10.08.0, or a distribution build without the backport, is installed on the host or in the image.
  2. An image or document library on that system can call it. The Hacker News names ImageMagick, Pillow, libvips and a Qt plugin.
  3. Someone else can supply the file: an upload form, an avatar or thumbnail feature, an email inbox, a shared print queue, or a public Gradio or ComfyUI endpoint (path traced by pwn.ai, not demonstrated).
  • Check the Ghostscript package version on the host and inside each container image. An updated host does not update a copy inside an image.
  • List the packages in each image before assuming Ghostscript is absent. pwn.ai notes that the official Paperless-ngx image includes it.
  • A dependency scanner that reads package.json or requirements.txt does not see Ghostscript. It is a system package.

If you are affected

  1. Update Ghostscript to 10.08.0 or your distribution's fixed build, then rebuild and redeploy every image that contains it.
  2. If the app never needs PostScript, EPS or PDF rendering, remove Ghostscript from the image.
  3. Until then, restrict the accepted formats in the image library. See the Pillow 13.0.0 advisory for Pillow's EPS path. The Hacker News lists authentication on print queues and limits on accepted file types as interim measures.
  4. No source reports exploitation. If an exposed upload endpoint ran an old build, review it as in if your web app was compromised.

Prevention

  • Check file content, not the name or extension, before any image library opens an upload.
  • Run thumbnailing and document conversion in a separate worker with no credentials and no network. See agent sandboxing.
  • Put authentication in front of Gradio, ComfyUI and similar tools before exposing them. See auditing a vibe-coded repo.
  • The Hacker News reports that an AppArmor profile stopped the compromised interpreter from starting a shell in one of the firm's tests.

Sources

  • CVE Services, CVE-2026-125396: VulnCheck CNA, published 2026-11-09, read 2026-11-22. Description, range, 8.5 with vector, CISA enrichment, references.
  • pwn.ai: Upload2Shell: index updated 2026-11-18, read 2026-11-22. Timeline, application index, quoted sentences, Debian and Ubuntu fix notes.
  • Ghostscript releases: read 2026-11-22. The 10.08.0 date.
  • The Hacker News: 2026-11-22. Library names, distribution status, interim measures.
  • CVE-2026-65640 (WordPress, HackerOne CNA, 2026-08-17) and CVE-2026-114727 (Roundcube, MITRE, 2026-10-22): the two application fixes.
  • Hacker News item 50592097: 2026-11-21, 139 points when read.
  • Not opened: pwn.ai's technical write-up, the Artifex bug report and fix commit, the Debian, Ubuntu, Amazon Linux and SUSE trackers, and the vendor pages of the listed applications.