thethreatdeskFiled from the front lines of cybersecurity
VulnerabilitiesHigh

Ghostscript bug turns print jobs, email attachments and upload forms into a way onto servers

Researchers at pwn.ai show a font-loading flaw in Ghostscript can switch off its -dSAFER sandbox, and that files named .png or .pdf can reach it through common image libraries.

Security firm pwn.ai has shown how a memory-safety bug in Ghostscript, the widely bundled PostScript and PDF interpreter, can be reached from the network even though it is rated as a local flaw. The bug, tracked as CVE-2026-125396 and scored 8.5 in a VulnCheck advisory, is a use-after-free in font loading. A crafted document can use it to turn off the checks that the -dSAFER sandbox normally enforces.

How a local bug becomes remote

Many programs hand files to Ghostscript without users realizing it. Image libraries such as ImageMagick, Pillow and libvips, and a Qt plugin, pass content along even when the file carries a .png, .jpg or .pdf name. The researchers tested about ten applications and reached the bug, running as the low-privilege rendering account, in several ways:

Fixes

Ghostscript 10.08.0, released on September 8, fixes the bug. WordPress 7.0.4 closed its own path under a separate CVE, and both updates are needed. Several Linux distributions still had fixes pending or in progress when the research was published. The public proof of concept shows only the memory technique, not a working shell, and fails on 10.08.0. There are no reports of attacks so far.

Why it matters

Ghostscript often hides inside containers and bundled applications, where a normal operating system update does not reach it. Teams that process untrusted documents may be running an old copy without knowing it.

Who's affected

Anyone running print servers, webmail, CMS upload forms or image-processing pipelines that may call Ghostscript, including inside containers.

What to do

Upgrade Ghostscript to 10.08.0 or later wherever it actually renders, including bundled and container copies; update WordPress to 7.0.4; require authentication on print queues; limit which file types image processors accept; and confine renderers with AppArmor or similar.

Tracked flaws:CVE-2026-125396