Flash

Flash·Safety & Risk·2026-11-22 20:09

Ghostscript Sandbox-Escape Flaw Lets Uploaded Files Run Commands on Servers

Security firm pwn.ai published research on Nov 17: Ghostscript has a sandbox-escape flaw, CVE-2026-125396, scored 8.5; upload, preview and print features in about ten common applications, including WordPress, Roundcube and CUPS, can be abused to run commands on the server.

Large office printer outputting documents beside a laptop in a bright print room
AI-generated illustration

What happened

The flaw sits in Ghostscript's font-loading code: the .putgstringcopy procedure calls the privileged .forceput operator without checking operand types. An attacker supplies a crafted PostScript or PDF document that triggers a type error, recovers .forceput through a custom error handler, and causes a use-after-free across save/restore to execute arbitrary code, bypassing the -dSAFER sandbox. Ghostscript is the interpreter many Linux servers use to convert PDFs, PostScript files and images, often reached indirectly through libraries such as ImageMagick, Pillow and libvips.

The pwn.ai demonstrations covered about ten applications: WordPress sites reached Ghostscript through the media preview process using Imagick and ImageMagick, and public upload forms in the Forminator and Essential Addons for Elementor plugins needed no login; Roundcube 1.7.2 processed an attachment the moment the recipient opened the message; a shared CUPS queue on Debian 13 accepted network print jobs without credentials, and the test document ran a command as lp, the print service account. The research describes demonstrations; no attacks in the wild have been reported.

Fix and status: Artifex fixed the flaw in Ghostscript 10.08.0 on September 8; the CVE was published on Nov 9 with a CVSS 4.0 score of 8.5. Distribution coverage is uneven: a pwn.ai survey last week found several distributions still shipping a vulnerable Ghostscript or with a fix pending, including Amazon Linux 2, 2023 and the 2027 Preview, while fixes are in progress for parts of SUSE; Debian published security update DLA-4914 on Nov 17 fixing Ghostscript on Debian 12. Updating the host operating system does not update a copy of Ghostscript bundled inside a container image or an application.

Key facts

  1. CVE-2026-125396: -dSAFER bypass: .putgstringcopy calls .forceput without checking operand types, leading to a use-after-free that executes arbitrary code
  2. Score 8.5: CVSS 4.0, local attack vector; the research is dubbed Upload2Shell
  3. Fix: Ghostscript 10.08.0 (Sep 8, 2026); the CVE was published on Nov 9
  4. Demonstrated: About ten applications; command execution confirmed on WordPress, Roundcube and CUPS, with some paths needing no login
  5. Distributions: Debian 12 fixed via DLA-4914; fixes pending or in progress for Amazon Linux and parts of SUSE; no attacks in the wild reported

Why it matters

Ghostscript sits deep in the file-processing chain, reachable even by applications that never call it directly; the flaw was fixed in September, but old copies in distributions and containers are still running, and the patch only helps the copy that actually renders the file.
Useful Tap if this story helped you
Send to a friendMakes a share image for X, WeChat, Telegram and more

Sourcespwn.ai (Nov 17, 2026); The Hacker News (Nov 22, 2026). This article is compiled from public information and does not constitute investment advice.

From HIMIAO Horizon · himiao.ai

Grab todayAdobe Creative Cloud Pro: 57% off first yearHIMIAO Picks →

Follow HIMIAO Horizon

No sign-up · Unsubscribe any time

Email

Notifications

A ping on your phone or computer when the brief is out. No email needed.

HIMIAO PicksWeekly freebies: one email every Friday, a 5-minute read

Comments

  1. Loading comments…
Ask the cat