Ghostscript Flaw Lets Attackers Run Commands on Servers

Researchers at pwn.ai disclosed a Ghostscript vulnerability, tracked as CVE-2026-125396, that can be triggered by files disguised as PDFs or images.

Updated on Nov. 22, 2026 in Cybersecurity

Ghostscript Flaw Lets Attackers Run Commands on Servers

pwn.ai disclosed Upload2Shell, a flaw in unpatched Ghostscript builds before version 10.08.0 that lets attackers disguise PostScript as a PDF, JPG or PNG to run commands on a server. The company confirmed command execution in 10 products, including Debian 13 and Roundcube webmail, and no in-the-wild exploitation has been reported.

Why it matters

Ghostscript is widely used to process documents, so a file-upload path to command execution puts many servers at risk until they are updated. The disclosure shows how AI assistance was used to find the flaw, and the gap between fix release and public CVE listing left administrators with limited warning.

The exploit hides PostScript inside files named .pdf, .jpg or .png and uses a crafted font-loading routine with its own error handler to switch off the -dSAFER protection in memory. Confirmed command execution spans 10 products, including Debian 13 and Roundcube webmail, while the fix ships in Ghostscript 10.08.0.

The players

Paulos Yibelo

Yibelo is the researcher at pwn.ai credited with discovering the Upload2Shell flaw with AI assistance and receiving the maximum bug bounty from Dropbox and five other organisations.

Artifex

Artifex is the company that develops and releases Ghostscript, the open-source PostScript and PDF interpreter whose version 10.08.0 fixes the flaw.

The details

Paulos Yibelo of pwn.ai found the vulnerability with the help of AI, and the flaw affects unpatched Ghostscript builds before version 10.08.0. Dropbox and five other organisations awarded Yibelo the maximum bug bounty, and WordPress shipped its own mitigation on August 12.

Timeline

  1. August 12: WordPress shipped its mitigation for the flaw.

  2. September 8: Artifex released Ghostscript 10.08.0 fixing the flaw.

  3. November 6: pwn.ai requested the CVE.

  4. November 9: CVE-2026-125396 was published (US Eastern time).

  5. November 10: Google closed the document pipeline path pwn.ai reached.

Seasonal Patterns

The bypass of Ghostscript's -dSAFER sandbox through a font-loading routine continues a pattern of document-processor sandbox escapes that has repeatedly exposed servers accepting user uploads. Its disclosure follows the same arc as earlier cases in which a fix shipped months before a public CVE, leaving administrators to patch without a published identifier.

Administrators running Ghostscript before version 10.08.0 should update to close the command-execution path. Anyone whose website or mail service accepts uploaded PDFs or images should confirm their document-processing software is current.

The takeaway

Any service that processes user-uploaded documents should treat file-type checks as insufficient and confirm its processing libraries are on patched releases. Waiting for a public CVE is not a reliable signal, since the fix in this case was available for two months before publication.

Further reading

Track more disclosures in the Cybersecurity section.

Source note: This article includes information reported by ITnews.