{"id":"CVE-2026-125396","state":"PUBLISHED","title":"Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery","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.","publishedAt":"2026-11-09T23:28:00.084Z","updatedAt":"2026-11-09T23:28:00.084Z","severity":{"score":8.5,"label":"High","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["ArtifexSoftware ghostpdl"],"affected":[{"vendor":"ArtifexSoftware","product":"ghostpdl","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"10.08.0","versionType":"custom"}]}],"references":["https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81","https://github.com/ArtifexSoftware/ghostpdl","https://bugs.ghostscript.com/show_bug.cgi?id=709684","https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-L1035","https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery"],"weaknesses":["CWE-648"],"ingestedAt":"2026-11-09T23:36:06.628Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/125xxx/CVE-2026-125396.json","commit":"b5e35fd13cceb3fc2d7ace24f43c95cd80e7dc5f","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-125396","state":"PUBLISHED","datePublished":"2026-11-09T23:28:00.084Z","dateUpdated":"2026-11-09T23:28:00.084Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-09T22:03:13.669Z"},"containers":{"cna":{"title":"Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ArtifexSoftware","product":"ghostpdl","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"10.08.0","versionType":"custom"}]}],"references":[{"url":"https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81","tags":["patch"],"name":"Patch Commit"},{"url":"https://github.com/ArtifexSoftware/ghostpdl","tags":["product"]},{"url":"https://bugs.ghostscript.com/show_bug.cgi?id=709684","tags":["issue-tracking"]},{"url":"https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-L1035","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery","name":"VulnCheck Advisory: Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.5,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-648","lang":"en","description":"Incorrect Use of Privileged APIs","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-09T23:28:00.084Z"},"datePublic":"2026-09-02T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:artifex:ghostscript:*:*:*:*:*:*:*:*","versionEndExcluding":"10.08.0"}]}]}],"credits":[{"lang":"en","value":"Paulos Yibelo and pwn.ai","type":"finder"},{"lang":"en","value":"Ken Sharp","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}