Ghostscript code execution via -dSAFER bypass in .putgstringcopy
ArtifexSoftware ghostpdl
ArtifexSoftware ghostpdl
| Product | Affected | Fixed in |
|---|---|---|
| ArtifexSoftware ghostpdl |
| No fix yet |
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. Attackers can supply crafted PostScript or PDF documents that trigger a type error, recover .forceput via a custom error handler, and cause a use-after-free across save/restore to execute arbitrary code.
From the CVE record · VulnCheck
Ghostscript before 10.08.0 has a -dSAFER bypass in the .putgstringcopy procedure. Processing a crafted PostScript or PDF document can let an attacker trigger a use-after-free and execute arbitrary code. The input does not specify whether authentication or user interaction is required.
Engineers running ArtifexSoftware ghostpdl with Ghostscript before 10.08.0 should check their deployments.