-dSAFER bypass in Ghostscript lets crafted documents run code
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Ghostscript from 0 before 10.08.0 contains a -dSAFER bypass in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. A local attacker can supply crafted PostScript or PDF documents that trigger a type error and recover .forceput through a custom error handler, which leads to a use-after-free across save and restore and arbitrary code execution if a user opens the document. This is classified as CWE-648, Incorrect Use of Privileged APIs.
Written with Claude Haiku 5.5 from the sources below · 2026-11-10
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ArtifexSoftware | ghostpdl | before 10.08.0 | 10.08.0 | Patch available | CNA |
- ghostpdl VendorArtifexSoftware Affected before 10.08.0 Fixed in 10.08.0 Patch available CNA
Remediation
Upgrade ArtifexSoftware ghostpdl to version 10.08.0, which fixes the flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-11-10
- Fix · CNA ghostpdl (ArtifexSoftware) Fixed in 10.08.0
Timeline
- 2026-11-09 Threatist record created from CVE-2026-125396
- 2026-11-10 Alias added: GHSA-hg3g-c775-3fpj
- 2026-11-10 CISA SSVC decision points changed
- 2026-11-10 Priority changed: MEDIUM → LOW
References
Sources
- CVE-2026-125396 · CVE Program
- CVE-2026-125396 · NVD
- FIRST EPSS
- GHSA-hg3g-c775-3fpj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences