# Ghostscript -dSAFER bypass lets crafted files run commands, fixed in 10.08.0 · pwn.watch > A crafted PDF or PostScript file can escape Ghostscript's -dSAFER sandbox and run commands as the process doing the rendering (CVE-2026-125396). It is fixed in Ghostscript 10.08.0, released Sept 8 2026, and in distro backports such as AlmaLinux and Debian. Copies of Ghostscript bundled in containers need updating too. Page: https://pwn.watch/i/ghostscript-upload2shell-dsafer-bypass-cve-2026-125396 · generated 2026-12-05T19:43:08.985Z ## Status - Severity: high · status: live · patch: patched - Product: Ghostscript - Started: 2026-09-08 - CVEs: CVE-2026-125396 - Affected: Ghostscript before 10.08.0 - Fixed in: 10.08.0; Distro backports (e.g. AlmaLinux, Debian) ## Follow this incident - RSS (one item per update): https://pwn.watch/i/ghostscript-upload2shell-dsafer-bypass-cve-2026-125396/feed.xml - JSON Feed: https://pwn.watch/i/ghostscript-upload2shell-dsafer-bypass-cve-2026-125396/feed.json - Full data (timeline, sources, posts, agentBrief): https://pwn.watch/i/ghostscript-upload2shell-dsafer-bypass-cve-2026-125396.json - This file: https://pwn.watch/i/ghostscript-upload2shell-dsafer-bypass-cve-2026-125396/llms.txt ## Updates (newest first) - 2026-09-08: Ghostscript 10.08.0 is released with the fix. (https://ghostscript.readthedocs.io/en/latest/News.html) ## Fix brief # Security brief: Ghostscript -dSAFER bypass lets crafted files run commands, fixed in 10.08.0 Source: https://pwn.watch/i/ghostscript-upload2shell-dsafer-bypass-cve-2026-125396 · status: live · severity: high · updated Dec 5, 2026, 19:33 UTC ## Patch status **PATCHED: fixed releases exist. Upgrade to a fixed version.** ## What it is A crafted PDF or PostScript file can escape Ghostscript's -dSAFER sandbox and run commands as the process doing the rendering (CVE-2026-125396). It is fixed in Ghostscript 10.08.0, released Sept 8 2026, and in distro backports such as AlmaLinux and Debian. Copies of Ghostscript bundled in containers need updating too. Severity detail: Command execution from a crafted PDF or PostScript file despite -dSAFER - Product: Ghostscript - CVE / advisory ids: CVE-2026-125396 ## Affected versions - Ghostscript before 10.08.0 ## Check whether you're affected No generic command applies (the product is a hosted service, appliance or desktop app). Check the installed version in its admin UI / About screen and compare with the versions above. ## Fix Upgrade to one of these fixed versions (or later on the same branch): - 10.08.0 - Distro backports (e.g. AlmaLinux, Debian) After upgrading, re-run the checks above and redeploy/restart the affected services. ## Specific notes Update Ghostscript to 10.08.0, or to your distro's patched package (AlmaLinux, Debian and others have backports). Rebuild and redeploy container images that bundle Ghostscript, since host updates don't reach them. Prioritise services that render uploaded PDF or PostScript files. ## Latest updates - Sep 8, 2026: Ghostscript 10.08.0 is released with the fix. ## Advisories - [Sophos advisory: Upload2Shell (Ghostscript)](https://www.sophos.com/en-us/security-advisories/sophos-sa-20261123-upload2shell) (Sophos) - [Ghostscript CVE list](https://ghostscript.com/releases/cve/index.html) (Artifex / Ghostscript) - [Ghostscript release notes](https://ghostscript.readthedocs.io/en/latest/News.html) (Artifex / Ghostscript) --- Machine-readable: https://pwn.watch/i/ghostscript-upload2shell-dsafer-bypass-cve-2026-125396.json · all incidents: https://pwn.watch/incidents.json. Verify against the vendor advisory before changing production systems.