Ghostscript CVE-2026-125396 lets a malicious PostScript or PDF file escape its sandbox and run code: update to 10.08.0 if your servers process uploaded documents
A flaw in Ghostscript before 10.08.0 (CVE-2026-125396, CVSS 7.8 as scored by Amazon) bypasses the -dSAFER sandbox that is meant to stop a document from touching your system, and can lead to code execution. It was fixed upstream in 10.08.0. Debian has patched builds; Amazon Linux and Red Hat had no fix when we looked. A comment on Red Hat's bug report says a public proof of concept exists; we did not verify it, and we found no report of attacks. What is confirmed, what to do, and what we could not read.
How urgent
Plan this week
Who is affected
Anyone who runs Ghostscript older than 10.08.0, mostly servers and apps that open documents they did not create: upload forms, image or PDF converters (including tools that call Ghostscript behind the scenes, such as ImageMagick), print servers and mail or document previews. A laptop that never opens untrusted PostScript, EPS or PDF files is much less exposed
What to do
Update Ghostscript to 10.08.0 or to your distribution's patched build, check which of your apps call Ghostscript, and until you have updated, stop feeding it files from outside: do not let uploaded PostScript, EPS or PDF files reach it, and run converters as an unprivileged user with no access to secrets
Published 23 Nov 2026 · Sources last checked 23 Nov 2026No. 116 / 168
What happened
On 10 November 2026 the vulnerabilityVulnerability A weakness in software, a setting or a process that an attacker could use to get in or do harm. Tap again to open the glossary CVE-2026-125396 was published. The description, identical in every source we read, says that Ghostscript before 10.08.0 has a bypass of the -dSAFER mode in a routine called .putgstringcopy in the file gs_fonts.ps, which calls a privileged operator without checking what it is given. Ghostscript is the program that many tools use to open PostScript, EPS and PDF files. -dSAFER is its sandboxSandbox A fenced-off area where a program runs with limited access, so if it misbehaves it cannot touch the rest of the system. Tap again to open the glossary: it is meant to stop a document from reading or writing files or running commands. Bypassing it means a crafted document can do those things. Red Hat's tracker titles the bug "arbitrary code execution via SAFER sandbox bypass".
The fix is in Ghostscript 10.08.0, upstream commit 1484854e.
How serious it is
Amazon scores it 7.8 out of 10 (High). The vector says it needs the victim to open a file and is not remotely reachable by itself, which is why a server is the case that matters: a server that opens files uploaded by strangers is the one that opens the file for the attacker. We found no report of attacks in the wild and it is not in CISA's Known Exploited Vulnerabilities catalog. A comment on Red Hat's bug report, from a reader, says a public proof of concept exists in a third party's repository and that its author says it worked on 10.07.1 and stopped working on 10.08.0. We did not read that repository and did not test it, so treat the claim as unverified.
This is not the same flaw as CVE-2026-101258, another -dSAFER bypass fixed in the same release, which was disclosed in October.
Who needs to act
- Servers that process uploads: document or image converters, thumbnail generators, import tools, print servers and mail or document previews. Many of them use Ghostscript without saying so.
- Anyone running a distribution that has not shipped the fix. When we looked, Debian listed fixed builds (bookworm and newer), Amazon Linux showed "Pending Fix" for Amazon Linux 2 and 2023, and Red Hat's bug was still open with no fix listed.
- Everyone else can update at the next normal maintenance window.
What to do
- Update Ghostscript to 10.08.0, or to your distribution's patched package. Check with
gs --version. - Find what calls it. On a server, look for Ghostscript (
gs) as a dependency of the tools that handle documents and images. - Until you can update, keep outside files away from it. Do not let uploaded PostScript, EPS or PDF files reach it, and block those formats in image tools that hand them to Ghostscript.
- Run converters with the least power: an unprivileged user, no access to secretsSecret (API key, token, password) Any piece of text that proves to a service that you are allowed in, such as an API key, a database password or an access token. Tap again to open the glossary or cloud keys, and no outgoing network if the job does not need it.
- Watch your distribution's advisory if it has not shipped the fix yet.
Steps 2 to 4 are ours; they are general hardeningHardening Tightening the settings of a server, app or device so it offers fewer ways in: switching off what you do not use and choosing the safer option where there is one. Tap again to open the glossary, not part of the CVECVE A public ID number, like CVE-2026-12345, given to one specific security flaw so everyone can talk about the same bug. Tap again to open the glossary record.
What we could not confirm
We read the Debian, Amazon Linux and Red Hat entries and an aggregator of the CVE data on 23 November 2026. We could not read The Hacker News article that reportedly describes attackers chaining the flaw through about ten popular applications, including a mail client and a print system; the site refused our request. We have not verified that claim, nor the list of applications. We also did not read the research behind that chain, Artifex's own advisory (we found none) or the third-party proof-of-concept. We have not tested the flaw or the fix.
Keep reading
More stories on the same topic or from the same area.
- TYPO3 form upload error leaks where files are stored, and TYPO3 and CISA say it is exploited: update to 14.3.12, 13.4.40 or your ELTS release and add a Content-Security-Policy to the upload folder (CVE-2026-125160)Plan this week 30 Nov 2026
- LiteLLM sandbox escape listed by CISA as exploited (CVE-2026-40217): check your proxy version and who holds the admin keyPlan this week 3 Dec 2026
- Two critical Wasmtime flaws can let a WebAssembly module escape its sandboxPlan this week 26 Oct 2026
Comments
No account needed. Add a nickname if you like, or leave it empty to comment anonymously. Comments are reviewed before they appear. Links are not allowed.
We store your comment, your nickname and a scrambled form of your connection that we use only to limit spam. We do not store your IP address or set cookies. Cloudflare Turnstile checks that you are not a bot.
Sources and verification
- Debian Security Tracker, CVE-2026-125396 (official distribution tracker; read 23 Nov 2026) (opens in a new tab)
- Amazon Linux Security Center, CVE-2026-125396 (published 10 Nov 2026, modified 12 Nov 2026; official; read 23 Nov 2026) (opens in a new tab)
- Red Hat Bugzilla 2569593, "Arbitrary code execution via SAFER sandbox bypass" (created 10 Nov 2026; official tracker with a reader's comment of 23 Nov; read 23 Nov 2026) (opens in a new tab)
- TheHackerWire, CVE-2026-125396 (aggregator of the CVE data; read 23 Nov 2026) (opens in a new tab)
We use primary sources first and say when we rely on a news report. Dates are the day we last checked each source.
Spotted a mistake? Email [email protected] and we will correct it and note the change.