Ghostscript -dSAFER Bypass Vulnerability in Artifex Software Product
CVE-2026-125396
8.5HIGH
What is CVE-2026-125396?
Ghostscript versions prior to 10.08.0 are susceptible to a -dSAFER bypass vulnerability stemming from improper operand type checks within the .putgstringcopy procedure located in gs_fonts.ps. This flaw permits attackers to craft malicious PostScript or PDF documents that can invoke a type error. Through clever exploitation, attackers may recover the .forceput operator via a custom error handler, leading to a use-after-free condition during the save/restore process, ultimately allowing the execution of arbitrary code.
Affected Version(s)
ghostpdl 0 < 10.08.0
