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
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.
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.
Mon, Nov 30, 2026
Fri, Nov 27, 2026
- DetectionNessus plugin 387077: RHEL 9 : ghostscript (RHSA-2026:103523)Tenable
Wed, Nov 25, 2026
- DetectionNessus plugin 386231: Rocky Linux 9.6 [TuxCare] Security Update: ghostscript / ghostscript-doc / ghostscript-gtk / etc (ALMALINUX9.6:CLSA-2026:1795554155)Tenable
- DetectionNessus plugin 386232: AlmaLinux 9.6 [TuxCare] Security Update: ghostscript / ghostscript-doc / ghostscript-gtk / etc (ALMALINUX9.6:CLSA-2026:1795554155)Tenable
- DetectionNessus plugin 386397: RHEL 8 : ghostscript (RHSA-2026:103524)Tenable
Tue, Nov 24, 2026
Mon, Nov 23, 2026
Sun, Nov 22, 2026
- Exploit code0xBlackash/CVE-2026-125396: CVE-2026-125396GitHub (unverified) · 23:30 UTC
- Exploit codeevenomn/CVE-2026-125396-upload2shell: CVE-2026-125396 Ghostscript -dSAFER 沙箱逃逸(Upload2Shell):独立逆向全指针链 / macOS+Linux 双平台复现 / 参数化 PoC 生成器 / WordPress 端到端打法GitHub (unverified) · 16:15 UTC
- Exploit codeashrafzaryouh/CVE-2026-125396: CVE-2026-125396GitHub (unverified) · 13:00 UTC
- Exploit code9bie/CVE-2026-125396-bomb: CVE-2026-125396(upload2shell) bomb fuzz exploitGitHub (unverified) · 08:30 UTC
Wed, Nov 18, 2026
Tue, Nov 10, 2026
- CVECVE-2026-125396 published (CVSS 7.8)CVE Program · 00:17 UTC
- DetectionNessus plugin 378166: Linux Distros Unpatched Vulnerability : CVE-2026-125396Tenable
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.
- 9bie/CVE-2026-125396-bomb: CVE-2026-125396(upload2shell) bomb fuzz exploit
GitHub, unverified · found Nov 22, 2026
- ashrafzaryouh/CVE-2026-125396: CVE-2026-125396
GitHub, unverified · found Nov 22, 2026
- evenomn/CVE-2026-125396-upload2shell: CVE-2026-125396 Ghostscript -dSAFER 沙箱逃逸(Upload2Shell):独立逆向全指针链 / macOS+Linux 双平台复现 / 参数化 PoC 生成器 / WordPress 端到端打法
GitHub, unverified · found Nov 22, 2026
- 0xBlackash/CVE-2026-125396: CVE-2026-125396
GitHub, unverified · found Nov 22, 2026
- mainaamos/CVE-2026-125396-Upload2Shell: PoC, lab harness and documentation for CVE-2026-125396 (Ghostscript 'Upload2Shell') - Type 1 font loader UAF, -dSAFER sandbox escape to RCE. Lab reproduces vulnerable 10.07.1 vs fixed 10.08.0.
GitHub, unverified · found Nov 24, 2026
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