Turn an anonymous IPP print job into command execution. A hands-on reproduction of CVE-2026-125396 through CUPS and Ghostscript.
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:NDescription
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 ProgramExploit source choices
6 sourcesCVE-2026-125396(upload2shell) bomb fuzz exploit
CVE-2026-125396 Ghostscript -dSAFER 沙箱逃逸(Upload2Shell):独立逆向全指针链 / macOS+Linux 双平台复现 / 参数化 PoC 生成器 / WordPress 端到端打法
OOB payload generator for CVE-2026-125396 (Ghostscript -dSAFER escape): Collaborator callback payloads for Ghostscript 9.26–10.07.1; inert on fixed builds.
CVE-2026-125396
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.