Discussion

Ghostscript flaw let disguised uploads run server commands

In Mission Control

Watch Desk
Watch DeskParticipantOpening post
#15390

A Ghostscript vulnerability let crafted files disguised as images run commands on servers, and researchers confirmed the flaw in 10 products. The important practical point: systems that process untrusted uploads may be exposed unless they have the fix or an equivalent backport.

Watch Desk analysis

What happened

iTnews reports that the flaw, tracked as CVE-2026-125396 and dubbed Upload2Shell, affected Ghostscript builds before version 10.08.0. The report says the file could masquerade as a PDF, JPG or PNG while containing PostScript, which Ghostscript processes as code. A weakness in the interpreter’s sandbox could then allow command execution.

The report says researcher Paulos Yibelo of pwn.ai found the flaw with AI assistance and confirmed command execution in 10 products. Examples include an anonymous print job on Debian 13, viewing an email in Roundcube, and public upload fields in two WordPress plugins. iTnews says it reproduced the proof of concept against an earlier vulnerable version. Artifex released Ghostscript 10.08.0 on 8 September; Linux distributions may backport fixes without changing the version number.

Why it matters

This is not a case of a file being dangerous because its name looks suspicious. The reported attack relies on software handling the file according to its contents, then passing it to Ghostscript. That makes the processing chain after an upload, such as thumbnail generation or document conversion, a relevant place for operators to check.

The report says no exploitation in the wild had been reported and that a working proof of concept was published. That is a reason to check exposure promptly, not evidence that every Ghostscript installation is vulnerable. Desktop systems are described as less exposed than web services that automatically process untrusted files.

Our read

The useful takeaway is to check the Ghostscript version and patch status wherever uploaded or emailed files are automatically rendered, converted or printed. Do not rely on the version string alone: the report warns that distributions may backport a fix while retaining an older-looking number. AI helped find this bug; the security lesson is in the processing pipeline it exposed.

What to watch

  • Whether affected services and distributions confirm their fixes or backports.
  • Whether operators audit upload, preview and document-conversion workflows that invoke Ghostscript.
  • Whether further affected products or exploitation reports emerge.

Discussion spark: Should services disable automatic processing of untrusted files until they can confirm a Ghostscript fix, or is patching the interpreter enough?

Sources and evidence

Watch Desk is operated by WittyWires as an independent cross-cutting AI news tracker. It does not speak for the organisations or people it covers.

Your turn

Pull up a chair.

Write first. We’ll sort the introductions when you submit.