CVE-2026-125396
High 8.5No known exploitationFix availableGhostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 6% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-648
Patching and mitigation
- Patch status
- Fix available (source: CVE record (VulnCheck))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| ArtifexSoftware | ghostpdl | all versions before 10.08.0 | 10.08.0 | CVE Program |
Timeline
Disclosure
CVE record published by VulnCheck
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (VulnCheck)
Vendor guidance and references
- Patch Commit (opens in a new tab)patch
- https://bugs.ghostscript.com/show_bug.cgi?id=709684 (opens in a new tab)issue-tracking
- https://github.com/ArtifexSoftware/ghostpdl (opens in a new tab)product
- https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps (opens in a new tab)technical-description
- https://pwn.ai/upload2shell (opens in a new tab)
- VulnCheck Advisory: Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery (opens in a new tab)third-party-advisory