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

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-11-09T23:28:00.084Z
- Modified: 2026-11-22T05:18:07.513Z
- Weaknesses: CWE-648
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- ArtifexSoftware ghostpdl: before 10.08.0

## Every score

- VulnCheck: CVSS:4.0 8.5 High `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`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81> (patch)
- <https://github.com/ArtifexSoftware/ghostpdl> (product)
- <https://bugs.ghostscript.com/show_bug.cgi?id=709684> (issue-tracking)
- <https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-L1035> (technical-description)
- <https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery> (third-party-advisory)
- <https://pwn.ai/upload2shell>
- <http://www.openwall.com/lists/oss-security/2026/11/22/1>

## Sources

- CVE List: [CVE-2026-125396](https://www.cve.org/CVERecord?id=CVE-2026-125396), CVE Terms of Use, modified 2026-11-22
- NVD: [CVE-2026-125396](https://nvd.nist.gov/vuln/detail/CVE-2026-125396), Public domain, modified 2026-11-22

---

Page: https://cve.day/CVE-2026-125396 · Whole record: https://cve.day/CVE-2026-125396.json · Rebuilt by cve.day 2026-11-25T22:59:49.700Z
