Ghostscript flaw lets routine file handling run server commands
Security firm pwn.ai demonstrated that crafted files could exploit Ghostscript through about 10 common applications to run server commands. Artifex patched the flaw in Ghostscript 10.08.0 on September 8; no attacks have been reported.
An image or document library may pass PostScript content to Ghostscript for a thumbnail or preview even when the upload is named .png or .jpg. The crafted file exploits a use-after-free bug in font loading to disable Ghostscript’s -dSAFER sandbox and run a command as the rendering account. Tested routes included anonymous print jobs, mail attachments, and public upload forms.
For Linux services that process user files, exposure follows the libraries and rendering paths behind a feature, not just applications that explicitly call Ghostscript. A network-facing service can therefore reach a flaw classified as local, and updating one visible integration does not show whether other workflows still invoke a vulnerable version.
Indirect library calls and misleading file extensions can expose upload workflows to Ghostscript even when an application does not invoke it directly.
CVSS 7.8 HIGH: ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. Microsoft patch: Release Notes.