{"affected":[{"defaultStatus":"unaffected","product":"ghostpdl","source":"CNA: VulnCheck","vendor":"ArtifexSoftware","versions":[{"lessThan":"10.08.0","status":"affected","version":"0","versionType":"custom"}]}],"cveId":"CVE-2026-125396","cwes":["CWE-648"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":8.5,"severity":"high","source":"CNA: VulnCheck","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","version":"4.0"},{"score":7.8,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1794266880084,"publishedAt":1794266880084,"references":[{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81"},{"source":"CNA: VulnCheck","tags":["product"],"url":"https://github.com/ArtifexSoftware/ghostpdl"},{"source":"CNA: VulnCheck","tags":["issue-tracking"],"url":"https://bugs.ghostscript.com/show_bug.cgi?id=709684"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-L1035"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81"}],"revision":"05bd64c886a23e9912afd9c8822559c4f3467e80f5c392471bf1bb252b53b6bb","sources":[{"modifiedAt":1794266880084,"name":"CNA: VulnCheck","retrievedAt":1794269362662,"url":"https://www.cve.org/CVERecord?id=CVE-2026-125396"}],"ssvc":null,"status":"published","title":"Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery","updatedAt":1794269362662}