{"id":"CVE-2026-125396","summary":"Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery","details":"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.","modified":"2026-11-22T20:45:18.626706446Z","published":"2026-11-09T23:28:00.084Z","related":["openSUSE-SU-2026:12528-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125396.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-648"]},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/11/22/1"},{"type":"WEB","url":"https://pwn.ai/upload2shell"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125396.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125396"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery"},{"type":"REPORT","url":"https://bugs.ghostscript.com/show_bug.cgi?id=709684"},{"type":"FIX","url":"https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81"},{"type":"PACKAGE","url":"https://github.com/ArtifexSoftware/ghostpdl"},{"type":"ARTICLE","url":"https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-L1035"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/artifexsoftware/ghostpdl","events":[{"introduced":"0"},{"fixed":"05631c2cba4e578fdd6bd25cae6f0939436de848"},{"fixed":"1484854e0c8ddfda1baa4ad4cd965b8a9790aa81"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"10.08.0"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"1484854e0c8ddfda1baa4ad4cd965b8a9790aa81"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["ghostpdl-10.05.0-test-base-001","robin_test_ref","ghostpdl-10.01.1-gse-10174","ghostpdl-10.02.0-test-base-001","ken_20220210_baseline","ghostpdl-9.56.0-test-base-5","ghostpdl-9.56.0-test-base-4","ghostpdl-9.56.0-test-base-3","ghostpdl-9.56.0-test-base-2","ghostpdl-9.56.0-test-base-0","ghostpdl-9.55-test-base-0","ghostpdl-9.54.0-test-base-0","ghostpdl-9.52-test-base-4","ghostpdl-9.52-test-base-3","ghostpdl-9.52-test-base-1","chrisl-test","jbig2dec-0.14","ghostpdl-9.02","ghostpdl","ghostscript-9.02","ghostscript-9.01","ghostpdl-9.01","ghostpdl-9.00","ghostpdl-8.71","ghostscript-8.71","ghostpdl-8.70","ghostscript-8.70","ghostpdl-ebuild","ghostpdl-1.54","ghostscript-8.64","ghostpdl-1.53","ghostscript-8.63","ghostscript-8.62","ghostscript-8.61","ghostscript-8.60","ghostscript-8.57","ghostscript-8.56","ghostscript-8.53","ghostscript-8.52","ghostscript-8.51","ghostscript-8.50","ghostscript-8.33","ghostscript-8.32","ghostscript-8.31","ghostscript-8.30","ghostscript-8.12","ghostscript-8.11","ghostscript-8.10","ghostscript-8.15","ghostscript-8.14","ghostscript-8.13","ghostscript-8.00","ghostscript-8.01","ghostscript-7.33","ghostscript-7.32","ghostscript-7.31","ghostscript-7.30","ghostscript-7.22","ghostscript-7.21","ghostscript-7.20","ghostscript-7.03","ghostscript-7.04","ghostscript-7.02","ghostscript-7.00","ghostscript-6.64","ghostscript-6.63","ghostscript-6.62","ghostscript-6.61","ghostscript-6.60","ghostscript-6.30","ghostscript-6.50","ghostscript-6.32","ghostscript-6.31","ghostscript-6.23","ghostscript-6.22","ghostscript-6.21","ghostscript-6.20","ghostscript-6.01","ghostscript-6.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125396.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}