CVE-2026-125396
Ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- bugs.ghostscript.com/show_bug.cgi?id=709684
- github.com/ArtifexSoftware/ghostpdl
- github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-
- github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81
- www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-f
- nvd.nist.gov/vuln/detail/CVE-2026-125396
- cve.org/CVERecord?id=CVE-2026-125396
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.