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

High 8.5 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-125396?

CVE-2026-125396 is a high-severity vulnerability in ArtifexSoftware ghostpdl, published on 9 Nov 2026.

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

Weakness: CWE-648

Which versions are affected by CVE-2026-125396?

How do I fix CVE-2026-125396?

Upgrade to a fixed version.

Is CVE-2026-125396 being exploited?

There is no known exploitation of CVE-2026-125396 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-125396, GHSA-hg3g-c775-3fpj, UBUNTU-CVE-2026-125396.

Is CVE-2026-125396 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free