知Yizhi Daily
← Back to this edition

AI

Ghostscript Font-Loading Vulnerability Can Execute Commands Through Printing and Document Preview Chains

Edition 2026-11-22 · 08:00 Beijing time

Research documents CVE-2026-125396: a use-after-free flaw in Ghostscript’s Type 1 font loader can let a specially crafted document bypass the -dSAFER sandbox and execute commands. In Debian 13 testing, anonymous IPP print jobs could execute commands on the host as the lp user; multiple email, web upload, wiki, and PDF processing paths were also confirmed as affected.

The public record says the tested environment was Debian 13 CUPS with Ghostscript 10.05.1~dfsg-1+deb13u1. The attack entry point was an anonymous IPP Print-Job to a shared network queue, and the observed result was commands running on the host with uid=7(lp); evidence includes one remote reproduction and 20 local conversion reproductions.

The underlying issue is in Ghostscript’s Type 1 font loader. A specially crafted document exploits the use-after-free flaw to pass through Ghostscript’s -dSAFER sandbox, alter native path control, and execute attacker-selected commands as the rendering process. The research notes that Ghostscript underlies printing, email, upload, and preview workflows, and even files named .png or .jpg may reach Ghostscript through ImageMagick image conversion.

The research team reported different chains to multiple upstream and product vendors. In Google Docs’ renderer, an unauthenticated request fetching an attacker-hosted file could reach Ghostscript, and production-environment evidence was sent to Google. The WordPress core upload path affects Author users and Contributors with the upload_files permission, while public upload fields in several plugins require no login; WordPress later released a separate fix, CVE-2026-65640.

Other confirmed paths include external sender attachments generating thumbnails when viewed in email and executing proof-of-concept code as www-data, the built-in Roundcube thumbnail path in Plesk Obsidian, public registration widgets and public PDF forms configured to be stored in the media library, document inbox imports of external attachments, upload-and-scale paths on open wikis, the anonymous MediaWiki PdfHandler PDF upload path, and preview worker processes triggered by authenticated uploads or upload-sharing capabilities. Debian released a stable security update after the report, and the current fixed version followed in October.

Original sources

Hacker News ↗
Back to this editionOpen interactive reader