CVE-2026-125396 PUBLISHED

Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery

Assigner: VulnCheck
Reserved: 09.11.2026 Published: 09.11.2026 Updated: 09.11.2026

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.

Metrics

CVSS 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
CVSS Score: 8.5

Product Status

Vendor ArtifexSoftware
Product ghostpdl
Versions Default: unaffected
  • affected from 0 to 10.08.0 (excl.)

Credits

  • Paulos Yibelo and pwn.ai finder
  • Ken Sharp remediation developer

References

Problem Types

  • Incorrect Use of Privileged APIs CWE