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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-648"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125396.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "10.08.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "1484854e0c8ddfda1baa4ad4cd965b8a9790aa81"
}
],
"source": "REFERENCES_COMMIT"
}
]
}