ZeroDay Brief
CVE-2026-125396 Exploit code public

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.

CVSS
7.8High
Chance of exploitation (EPSS)
0.48%
Published
Nov 10, 2026
In the news
Not yet
More from this vendor

What to do

A serious security flaw in Artifexsoftware Ghostpdl that needs access to the machine itself. Exploit code is public, so patch it soon.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Fixed in: 10.08.0

Affected versions
Artifexsoftware Ghostpdl
Before 10.08.0

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.

CWE-648

Affected products

Get alerts for these →

Timeline 14

Latest change: Nessus plugin 388769: CentOS Linux 7 [TuxCare] Security Update: ghostscript / ghostscript-cups / ghostscript-doc / ghostscript-gtk / etc (CENTOS7:CLSA-2026:1795571526) (Nov 29, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Exploit code

Visit at your own risk. These are third-party sites we find automatically. We do not test, review or vouch for them, and fake proof-of-concept repositories sometimes contain malware.

References 5

  • bugs.ghostscript.com /show_bug.cgi?id=709684
  • github.com /ArtifexSoftware/ghostpdl
  • github.com /ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-L1035
  • github.com /ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81
  • www.vulncheck.com /advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”