Trusence Every claim has a source
Last updated 22 November 2026 Search Türkçe
Security

Ghostscript sandbox escape lets crafted image uploads run commands on servers

Operators running image or document tools that call Ghostscript should check for bundled copies and update them, since host OS updates may not reach them.

A cracked steel vault door standing slightly ajar, a key left in its lock, and a few sealed envelopes on the floor in front.
AI-generated illustration

Security firm pwn.ai has disclosed CVE-2026-125396, a now-patched use-after-free bug in Ghostscript's font-loading code that lets a crafted file break out of the -dSAFER sandbox and run commands as the low-privilege rendering account. Because libraries such as ImageMagick, Pillow and libvips pass PostScript or EPS content to Ghostscript even under image file names, routine thumbnailing or cropping can trigger it, and the firm reproduced the result across roughly ten applications, some reachable without logging in. Artifex fixed the flaw in Ghostscript 10.08.0 on September 8, and no attacks have been reported. Updating the host OS may not patch copies of Ghostscript bundled in containers or applications, and distribution coverage is uneven, with Debian 12, several SUSE and openSUSE releases and Amazon Linux still listed as vulnerable or pending at the time of the survey. Until patched, operators can require authentication on print queues and restrict accepted image types, while WordPress's separate fix in 7.0.4 covers a different point in the same chain.

Why it matters

The flaw matters most to anyone whose servers accept uploaded images or documents, because common libraries can pass content to Ghostscript regardless of the file's extension, so an ordinary-looking file can reach the vulnerable code. Patching is more complicated than updating the host system, since copies inside containers or applications can stay vulnerable after the operating system is fixed. No attacks have been reported so far, and the fix has been available since September 8, which leaves time for operators to find and update every copy in use.

Sources · 1