← Sun, Nov 22 digest

Upload2Shell (CVE-2026-125396)

read article ↗ hn thread ↗

A use-after-free vulnerability in Ghostscript's Type 1 font loader (CVE-2026-125396) allows remote code execution by bypassing the -dSAFER sandbox.

summary is enough The core technical flaw is a known class of Ghostscript issue; the value is in the list of affected downstream applications.

summary

Researchers discovered a use-after-free flaw in Ghostscript's Type 1 font loader that enables attackers to escape the -dSAFER sandbox and execute arbitrary commands. Because Ghostscript is frequently used as a backend for image and document processing (e.g., via ImageMagick or Pillow), the vulnerability affects a wide range of services including Debian 13, WordPress, Google, and Wikimedia. Patches have been released for Ghostscript 10.08.0 and affected distributions, though many applications remain vulnerable if they rely on outdated versions.

key points

  1. The vulnerability allows unauthenticated remote code execution (RCE) via crafted documents.
  2. Affected paths include IPP print jobs in Debian 13, PDF uploads in WordPress, and thumbnail generation in Roundcube.
  3. ImageMagick and Pillow can route files with common image extensions (.png, .jpg) to Ghostscript, expanding the attack surface.
  4. Fixed in Ghostscript 10.08.0 and backported to Debian and Ubuntu security updates.

who should read it

System administrators and developers using Ghostscript, ImageMagick, or document-processing pipelines.

discussion mixed

consensus

Commenters agree that Ghostscript is fundamentally insecure due to PostScript being a full programming language and that its sandbox is insufficient.

pushback

Some users criticize the disclosure's presentation as 'slop' and 'clickbait,' arguing the 'Upload2Shell' branding is superficial and the website layout is unreadable.

best comment by hannob ↗

It's been known for a while, and certainly long before the recent AI vuln flood, that ghostscript is really problematic in terms of security.

Ultimately, postscript is its own programming language, and executing a programming language in a secure, sandboxed way is not trivial. ghostscript has only a very poor pseudo sandbox that fails regularly. Unfortunately, ghostscript is the only implementation of postscript that's out there.

All of that would matter much less if people only used it to parse postscript. But it's used indirectly by imagemagick (you can disable it), which means many …

Explains the fundamental architectural reason why Ghostscript is difficult to secure: it executes a programming language.

Generated by an LLM from the article and thread. Check the sources before relying on it.