News

A Ghostscript Font Bug Lets a Picture Upload Run Code, and Many Linux Distros Still Ship It

pwn.ai published CVE-2026-125396 on November 21. A Type 1 font bug in Ghostscript before 10.08.0 bypasses -dSAFER. Debian 12 and several SUSE trees were still listed.

A file that looks like a photo can still reach Ghostscript, turn off its sandbox, and run a command as the account that renders documents.

pwn.ai published that chain on November 21 as Upload2Shell, CVE-2026-125396. The bug lives in Ghostscript's Type 1 font loader. A crafted document crosses -dSAFER, the default sandbox that is supposed to keep a file from running commands or touching other files. VulnCheck scores it 8.5 and credits Paulos Yibelo, pwn.ai, and Ken Sharp, who patched it at Artifex. The public identifier landed November 9. Alan Coopersmith flagged the write-up on oss-security the same Saturday.

Ghostscript 10.08.0, dated September 8, is the fixed upstream build. Artifex's release notes only say the drop "addresses a number of potential security issues." The CVE page at ghostscript.com listed five other 10.08.0 fixes and omitted this one until pwn.ai named it.

The renderer nobody called

The researchers did not need an app to invoke Ghostscript by name. ImageMagick, Pillow, libvips, or a print filter will hand PostScript or EPS to it even when the upload is named .png or .jpg. Their index records command execution on Debian 13 CUPS as lp from an anonymous IPP job, on Roundcube 1.7.2 as www-data when the recipient merely opened the mail, and on public Forminator and Essential Addons for Elementor forms with no login. WordPress Core needed an Author (or a Contributor given upload_files). Google's image pipeline took a signed-out request for a hosted file; Google closed that path on November 10.

WordPress shipped its own upload fix on August 12 as CVE-2026-65640. Roundcube later limited unsafe attachment image types under CVE-2026-114727. Those cuts close one door into the interpreter. They do not replace Ghostscript 10.08.0, or the Debian 13 security package 10.05.1~dfsg-1+deb13u3, or Ubuntu's USN-8949-1 from October 21.

The copy that still runs

pwn.ai's survey still listed Debian 12 as vulnerable, Amazon Linux 2, 2023, and 2027 Preview as pending, and several SUSE and openSUSE Leap 16 trees as affected or in progress. It did not claim a tested attack path on each of those packages. It also did not settle Red Hat, Rocky, Alma, Oracle Linux, or stable Fedora.

A host package update does not touch a Ghostscript binary baked into a container or an app. There are no reports of attacks using this CVE. The bug is the same class of buried helper Cyberpresso keeps seeing under mail and print: GnuPG's GPGME sat under clients the same way. The file that starts the interpreter does not have to look like PostScript.

Some offers on this page may be paid placements or contain affiliate links.

Cyberpresso: daily cyber & AI brief

Free daily newsletter, read in 5 minutes.

Subscribe free