Ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability in the .putgstringcopy procedure in gs_fonts.ps
Affects ghostscriptSource GCVE Database
Not known to be exploited · CVSS 8.5 High · fixed in 10.08.0 : patch ghostscript soon.
Data as of 13 Nov 2026, 22:31 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.5 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.8 |
- Patch
- Available – fixed in 10.08.0
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 9 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10ghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=esm-infra/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Ghostscript version 10.08.0 and later. Users should upgrade to version 10.08.0 or newer to remediate this vulnerability. No other mitigation or temporary workaround is indicated in the provided data.
Description
Ghostscript versions before 10.08.0 contain a vulnerability that allows bypassing the -dSAFER security option via the .putgstringcopy procedure in gs_fonts.ps. This procedure calls the privileged .forceput operator without verifying operand types. Crafted PostScript or PDF documents can trigger a type error, enabling attackers to recover .forceput through a custom error handler and cause a use-after-free condition across save/restore operations, potentially leading to arbitrary code execution.
References
- ubuntu.com/security/CVE-2026-125396 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-125396 (opens in a new tab)
- bugs.ghostscript.com/show_bug.cgi?id=709684 (opens in a new tab)
- github.com/ArtifexSoftware/ghostpdl (opens in a new tab)
- github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps (opens in a new tab)
- github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81 (opens in a new tab)
- vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery (opens in a new tab)