← Edition of Monday 23 November 2026

Broad exposure · patch available

Ghostscript: one uploaded file is enough to take the server that processes it

Reading time: 3 min · 5 sources
KEY POINTS

A Ghostscript flaw allows takeover of any server that converts user-uploaded files, directly or through ImageMagick. The patch exists (10.08.0) and no exploitation is observed, but the component is present in far more applications than organisations realise.

The facts

CVE-2026-125396 is a bypass of Ghostscript's -dSAFER sandbox, the mechanism meant to stop a PostScript or PDF file from acting on the system. An internal procedure calls a privileged operator without checking its operands, which lets a malicious file recover that operator and then trigger a memory corruption leading to code execution. All versions before 10.08.0 are affected. The CVE was published on 9 November and updated on 22 November.

The name Upload2Shell comes from researchers at Pwn.ai, reported by Risky Business and The Hacker News: any application or website that passes uploaded files to Ghostscript, a PDF, a PostScript file or a disguised image handed to ImageMagick or GraphicsMagick for conversion or thumbnailing, can be taken over. A demonstration against widely used applications has been announced.

The vendor rates the flaw 7.8 under CVSS 3.1 (local attack, interaction required) and 8.5 under CVSS 4.0. That score fits a user opening a file; it does not reflect a server automatically processing files from strangers, where the attack is remote and needs no interaction. No exploitation is known, no public exploit code is mentioned in the sources read, and the flaw is not in CISA's catalogue of exploited vulnerabilities.

Why it matters

Ghostscript is one of those components almost nobody buys and almost everybody runs. It is embedded in image-processing libraries, document-management tools, virtual printers, portals that render a preview of an attachment. Organisations often run it without knowing, and part of it runs at their hosting providers and SaaS vendors.

Flaws of this kind have a history: previous Ghostscript sandbox escapes were exploited within weeks of publication, because the attack surface is well known and entry points are easy to find. The absence of exploitation today is a window, not a guarantee.

The decision is not only to patch: it is to know where files from the public enter the information system, through which chain they pass and who owns it. That map will also serve for the next flaw in the same family.

What to decide

1Mapping: have the entry points for external files identified, with the processing chains (conversion, thumbnails, OCR, printing) that rely on Ghostscript or ImageMagick.
2Patching: set a date for moving to 10.08.0 on exposed systems, then on internal ones.
3Suppliers: ask hosting providers and SaaS vendors that process files on the organisation's behalf for their own schedule.
4Meanwhile: have the restriction of accepted formats and the isolation of conversion services assessed.

Timeline

9 NovCVE-2026-125396 published; fixed version 10.08.0.
21 NovPwn.ai describes Upload2Shell; picked up by Risky Business and The Hacker News.
22 NovCVE record updated.

Sources