7.8High

CVE-2026-125396Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery

ArtifexSoftware ghostpdl Published: (8 days ago)

Description

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): CWE-648

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
artifex ghostscript < 10.08.0
ArtifexSoftware ghostpdl < 10.08.0

References and patches