Artifex Software Ghostscript · Public exploit code

Ghostscript PoC bypasses sandbox, executes system commands via unauthenticated CUPS

· 1 min read

A PoC has been released for CVE-2026-125396, a use-after-free flaw in Ghostscript's Type 1 font loader that bypasses the -dSAFER sandbox and executes operating system commands through specially crafted PostScript or PDF files. When a vulnerable instance serves a CUPS print queue accepting unauthenticated IPP requests, a remote attacker can trigger the flaw with no authentication or user interaction, with the print service account's privileges. The source lists no affected versions or fix; restrict print queue access and treat PostScript and PDF files as untrusted.

Illustration: Ghostscript PoC bypasses sandbox, executes system commands via unauthenticated CUPS
WhatsApp LinkedIn X
HighVulnerabilityPublic exploit codeFix unconfirmed

In 30 seconds

Observed

A proof of concept has been announced for CVE-2026-125396, a flaw tracked in Ghostscript, the widely used PostScript and PDF interpreter. The security account ptdbugs flagged the exploit on X, and a public GitHub repository named Upload2Shell by user DeathShotXD sits in the same evidence batch.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listgithub.comgithub.com · rssOpen original sourceSee in source list

Alleged

According to the tracked description, the flaw is a use-after-free, meaning memory freed while still in use, in Ghostscript's Type 1 font loader. Crafted PostScript or PDF files can allegedly slip past the -dSAFER sandbox, the safety switch meant to block dangerous operations, and run arbitrary operating system commands.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

What happened

Observed

The first public signal in this batch is a post from the account ptdbugs stating that a PoC or exploit has been discovered for CVE-2026-125396, tracked as PT-2026-141219 on the dbugs platform. The entry names vendor Artifex Software and product Ghostpdl, better known as Ghostscript.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Alleged

The vulnerability description lays out a chain of three steps. A use-after-free in the Type 1 font loader, an escape from the -dSAFER sandbox, and execution of arbitrary operating system commands, all triggered by processing a specially crafted PostScript or PDF file.dbu.gsdbu.gs · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Alleged

The same description sketches a remote route. If a vulnerable Ghostscript instance serves a CUPS print queue, the standard print server on Linux and Unix systems, and that queue accepts unauthenticated IPP requests, the network protocol that printers and print servers speak, then a remote attacker could trigger the flaw with no login and no user interaction, with commands running under the print service account.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Inferred

A repository called Upload2Shell by GitHub user DeathShotXD appears in the evidence alongside the advisory. The name suggests a tool that turns a file submission into shell access, which would fit this bug's profile, but the batch never spells out the repo's relation to CVE-2026-125396, so treat the pairing as an inference from the grouping.github.comgithub.com · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Why it matters

Inferred

Ghostscript sits everywhere documents get processed: print servers, thumbnail generators, file conversion pipelines. The -dSAFER flag is the main line of defense whenever it handles files from strangers. If the described bypass works as written, a document that merely gets rendered could become a foothold on the server.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Inferred

The CUPS angle raises the stakes because it removes the human click. No phishing attachment to open and no user to trick: according to the description, an unauthenticated network request to an exposed print queue would be enough, with the resulting commands limited to the privileges of the print service account rather than full system access.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

What to do

Inferred

Until affected versions and a fix are confirmed, treat every PostScript and PDF file from outside your organization as untrusted, and avoid pushing them through Ghostscript outside a controlled environment.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Inferred

On the print side, walk the described attack path in reverse: require authentication on IPP endpoints, keep CUPS queues off untrusted networks, and check whether your queues invoke Ghostscript for filtering. This is exposure reduction, not a patch, but it closes the remote route as described.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Inferred

Watch for an advisory from Artifex Software and for updated packages in your distributions. The current entry lists no fixed version, so there is no clean upgrade target to aim at yet.dbu.gsdbu.gs · rssOpen original sourceSee in source list

Confirmed and still uncertain

Observed

What the batch establishes: a tracked vulnerability entry exists on dbugs, a PoC announcement was posted, and a public repository accompanies them. The description covers the mechanism and one concrete attack scenario in technical detail.dbu.gsdbu.gs · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source listgithub.comgithub.com · rssOpen original sourceSee in source list

Observed

What it does not cover: no list of affected versions, no patch or vendor workaround, no evidence of exploitation in the wild, and no independent confirmation that the PoC behaves as described. Every claim about the bug's mechanics rests on a single tracker description.dbu.gsdbu.gs · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

What people are saying

Observed

The conversation in this batch is essentially one voice. The account ptdbugs announced the PoC, pointed to dbugs entry PT-2026-141219, named Artifex Software's Ghostpdl as the product, and republished the full technical description of the flaw.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Inferred

The repository by DeathShotXD is the other presence, but it contributes code rather than commentary. No vendor response, researcher writeup, or community discussion appears in the evidence yet.github.comgithub.com · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Evolution

Observed

This story is at its first step. The evidence is a single snapshot: the vulnerability entry, the PoC announcement, and the repository arriving together, with no prior reporting in the batch to compare against.dbu.gsdbu.gs · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source listgithub.comgithub.com · rssOpen original sourceSee in source list

Inferred

The natural next beats, if the description holds: a vendor advisory from Artifex Software, affected version ranges, a patched release, and eventually signs of real world exploitation or its absence. None of that has arrived here.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Reach

Observed

2 independent groups, 1 updates, and 0 engagements.

Technical detail

Alleged

A use-after-free happens when a program frees memory while it still holds a pointer to it, allowing an attacker to reclaim that memory with hostile content. Here the flaw allegedly lives in the Type 1 font loader, the code that parses the older PostScript font format, and the delivery vehicle is a crafted PostScript or PDF file.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Alleged

The -dSAFER option is Ghostscript's sandbox: it is supposed to block file writes, reads outside allowed paths, and calls out to the operating system. The described chain claims the use-after-free defeats exactly this barrier, ending in arbitrary operating system commands.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Inferred

On the remote path, the print server does the rendering for you. An IPP request reaches a CUPS queue with no authentication, CUPS hands the payload to a vulnerable Ghostscript, and commands land with the print service account's privileges. The repository's own exploit logic is absent from the batch, so the exact technique remains unseen.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listgithub.comgithub.com · rssOpen original sourceSee in source list

Sources and evidence

Observed

Primary source one: the dbugs vulnerability entry PT-2026-141219 at dbu.gs, which carries the canonical description for CVE-2026-125396, listing vendor Artifex Software and product Ghostpdl, the Ghostscript codebase.dbu.gsdbu.gs · rssOpen original sourceSee in source list

Observed

Primary source two: the GitHub repository DeathShotXD/Upload2Shell, a public code repository whose name and placement in the batch suggest it is the proof of concept, though no readme or code excerpt confirms its function.github.comgithub.com · rssOpen original sourceSee in source list

Observed

Discussion source: a post from X account ptdbugs announcing the PoC and republishing the full vulnerability text, which is where most of the detail in this story comes from. No vendor advisory or independent technical analysis appears, so the description remains single sourced.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Sources

  1. ptdbugsx.com · ptdbugs · x
  2. github.comgithub.com · rss
  3. dbu.gsdbu.gs · rss

Incidents like this, every morning

The ones that need action first, in a 3-minute read.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Get the next one tomorrow morning

One email a day with what changed, what to fix first and how.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Share it with your team

Whoever handles security with you should get it too.

LinkedIn X

Your colleague gets a confirmation request. Nothing is sent unless they confirm.

See all news

Read also

Before you go: get this every day

The HIFY Radar daily edition lands every morning with the incidents that need action. Free.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click