CVE Catalog

CVE-2026-125396

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.48%

43th percentile - higher than 43% of all known CVEs

Summary

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.

Risk Assessment

Opening a malicious PostScript or PDF document can lead to arbitrary code execution in the context of the Ghostscript process. This is a serious risk for systems processing untrusted files.

Recommendation

Update Ghostscript to version 10.08.0 or later. Until patched, process untrusted documents in an isolated environment and limit process privileges.

Other vulnerabilities in Ghostscript

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS