# CVE-2026-125396: Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery

- Priority: **Routine**
- Reason: Not severe (CVSS 8.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-09 · Modified: 2026-11-22
- Aliases: DEBIAN-CVE-2026-125396, UBUNTU-CVE-2026-125396, RHSA-2026:103517, RHSA-2026:103523, RHSA-2026:103524
- Record: https://cvemate.com/vulnerability/CVE-2026-125396 · JSON: https://cvemate.com/vulnerability/CVE-2026-125396/json

## Description

```text
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.
```

## Signals

- CVSS: 8.5 high (v4.0, CVE.org) 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
- EPSS: 0.475%, percentile 42.706%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- artifexsoftware ghostpdl: \< 10.08.0
- debian ghostscript (Debian): All versions (No fix recorded) \| \< 10.0.0~dfsg-11+deb12u9 \| \< 10.05.1~dfsg-1+deb13u2 \| \< 10.08.0~dfsg-1
- ubuntu ghostscript (Ubuntu): All versions (No fix recorded)
- redhat ghostscript (Red Hat): \< 0:10.02.1-17.el10\_3.1 \| \< 0:9.54.0-20.el9\_9.1 \| \< 0:9.27-21.el8\_10
- redhat libgs (Red Hat): \< 0:10.02.1-17.el10\_3.1 \| \< 0:9.54.0-20.el9\_9.1 \| \< 0:9.27-21.el8\_10

## References

- <https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81>
- <https://github.com/ArtifexSoftware/ghostpdl>
- <https://bugs.ghostscript.com/show_bug.cgi?id=709684>
- <https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-L1035>
- <https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery>
- <https://security-tracker.debian.org/tracker/CVE-2026-125396>
- <https://ubuntu.com/security/CVE-2026-125396>
- <https://www.cve.org/CVERecord?id=CVE-2026-125396>
- <https://pwn.ai/upload2shell>
- <http://www.openwall.com/lists/oss-security/2026/11/22/1>
- <https://access.redhat.com/errata/RHSA-2026:103517>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2569593>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_103517.json>
- <https://access.redhat.com/security/cve/CVE-2026-125396>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-125396>
- <https://access.redhat.com/errata/RHSA-2026:103523>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_103523.json>
- <https://access.redhat.com/errata/RHSA-2026:103524>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_103524.json>

---

Data as of 2026-12-05T10:01:12.042Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
