[ CVE-2026-125396 · Published 10 Nov 2026 ]
Vulnerability in ArtifexSoftware ghostpdl
[ Description ]Official 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.
[ Fixes ]How to fix it
Fixed versions
- ArtifexSoftware ghostpdl: upgrade to 10.08.0 or laterEarlier versions are listed as affected
From the affected-version ranges in the CVE record. Check the vendor's advisory for the exact release for your platform or branch.
Vendor advisories and patches
- Patchgithub.com
[ Advisories ]Government CERT advisories
-
BSI CERT-BundWID-SEC-2026-4424
Ghostscript: Vulnerability allows code execution Translated from German
[ References ]References
- bugs.ghostscript.com/show_bug.cgi
- github.com/ArtifexSoftware/ghostpdl
- github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps
- github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81
- www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcop…