Exploit database

Vulnerability

CVE-2026-125396

Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery

Vulnerability details

Score
8.5
Severity
high

CVSS 4.0 · VulnCheck

Vector string

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

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.

CVE Program

Exploit source choices

6 sources
deathshotxd/upload2shell
GH-c93b0d860cbd6c3c0e3b65ba4f3312b0GitHubUnofficial GitHub sourcePreferred

Turn an anonymous IPP print job into command execution. A hands-on reproduction of CVE-2026-125396 through CUPS and Ghostscript.

2026-11-2430 files · 14 stars
9bie/cve-2026-125396-bomb
GH-8bdafb0f23c4e1ddc6d61b4210fc7151GitHubUnofficial GitHub source

CVE-2026-125396(upload2shell) bomb fuzz exploit

2026-11-223 files · 13 stars
evenomn/cve-2026-125396-upload2shell
GH-8b6eb190b305a00d1abd5c5fdac6ed80GitHubUnofficial GitHub source

CVE-2026-125396 Ghostscript -dSAFER 沙箱逃逸(Upload2Shell):独立逆向全指针链 / macOS+Linux 双平台复现 / 参数化 PoC 生成器 / WordPress 端到端打法

2026-11-2214 files · 9 stars
dinosn/upload2shell-poc-generator
GH-a3d006328e6449db0c6611f6be131eddGitHubUnofficial GitHub source

OOB payload generator for CVE-2026-125396 (Ghostscript -dSAFER escape): Collaborator callback payloads for Ghostscript 9.26–10.07.1; inert on fixed builds.

2026-11-222 files · 8 stars
mahgal/upload2shell-check
GH-3bf17765e2393c9e92ddcba1bd031fc4GitHubUnofficial GitHub source

Check whether an uploaded file can reach your Ghostscript — trace the whole upload chain (Ghostscript version, ImageMagick delegates/policy, CUPS, WordPress/Roundcube) for CVE-2026-125396 Upload2Shell exposure.

2026-11-228 files · 1 stars