Skip to content
NewA calmer, faster ZeroHour

CVE-2026-125396

-dSAFER bypass and code execution in Ghostscript before 10.08.0

CVSS 4.0
8.5 high
EPSS
<1%p6
Published
·
Modified
Analyze CVE-2026-125396 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

Ghostscript before 10.08.0 has a -dSAFER bypass in .putgstringcopy (gs_fonts.ps), which calls privileged .forceput without checking operand types. A local attacker can supply a crafted PostScript or PDF that a user opens, force a type error, recover .forceput through a custom error handler, and trigger a use-after-free across save/restore to run arbitrary code. Anyone processing untrusted documents with an affected Ghostscript build is at risk.

What to do: Upgrade Ghostscript to 10.08.0.

ProductAffectedFixed in
Ghostscriptbefore 10.08.010.08.0
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

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.

Weakness
CWE-648
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

4 stories