Plan this weekVulnerabilities

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

  1. Update Ghostscript to 10.08.0, or to your distribution's patched package. Check with gs --version.
  2. Find what calls it. On a server, look for Ghostscript (gs) as a dependency of the tools that handle documents and images.
  3. 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.
  4. 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.
  5. 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.

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

    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.

    Newsletter · every Friday · free

    Get the weekly security briefing

    One email every Friday: what to act on now and what to plan this week, in plain words. The free one-page runbooks come in your welcome email. You confirm your address first.

    Subscribe for free

    Press / to search from any page