HighVulnerabilityPatch available

Ghostscript CVE-2026-125396: pwn.ai reports sandbox escape via uploads

The Hacker News reports pwn.ai showed a Ghostscript flaw, CVE-2026-125396, enabling sandbox escape; update to 10.08.0 or later.

Published
Fixed in
Ghostscript 10.08.0, WordPress 7.0.4 (separate identifier CVE-2026-65640)
Exploitation
No, The Hacker News says there have been no reports of CVE-2026-125396 being used in attacks

Live scores

CVE-2026-125396
EPSS
0.004
low predicted chance of attack
VEDAS
0.969
strong exploit evidence
On CISA KEV
Not listed
Detection rule
Out of scope (local)

Live scores

CVE-2026-65640
EPSS
0.019
some chance of attack soon
VEDAS
0.061
little exploit evidence
On CISA KEV
Not listed
Detection rule
No public rule yet

What happened

According to The Hacker News, security firm pwn.ai demonstrated that a crafted file can escape the Ghostscript -dSAFER sandbox and run commands on the server that processes it. The flaw is tracked as CVE-2026-125396. The Hacker News says it was fixed on September 8 and that there have been no reports of it being used in attacks.

The Hacker News reports that pwn.ai fed such a document through about ten common applications and saw a command run on the server each time, as the low-privilege account that does the rendering. It says libraries such as ImageMagick, Pillow, libvips or a Qt plugin may pass PostScript or EPS content to Ghostscript even when the file is named .png, .jpg or .pdf.

The VulnCheck advisory describes the flaw as a -dSAFER bypass in the .putgstringcopy procedure in gs_fonts.ps. That procedure calls the privileged .forceput operator without checking operand types. VulnCheck says crafted PostScript or PDF documents can trigger a type error, recover .forceput through a custom error handler, and cause a use-after-free across save/restore to execute arbitrary code. It lists affected versions as before 10.08.0, a CVSS score of 8.5, and credits Paulos Yibelo and pwn.ai, and Ken Sharp.

According to The Hacker News, several paths needed no login:

  • An anonymous print job to a shared Debian 13 queue.
  • An emailed attachment that Roundcube webmail processed when the recipient opened the message.
  • Public upload forms in the WordPress plugins Forminator and Essential Addons for Elementor.

It adds that WordPress Core needed an account able to upload files, which Authors and higher roles have by default. It also notes the CVE is classed as a local flaw, although pwn.ai’s tests reached Ghostscript over the network.

What is not confirmed: The Hacker News says pwn.ai did not establish whether current Red Hat, Rocky Linux, AlmaLinux, Oracle Linux or stable Fedora packages carry the fix. Per-application tested versions and access requirements are in pwn.ai’s impact index, which was not among the sources reviewed here.

Am I affected?

You may be if Ghostscript before 10.08.0 processes untrusted files on your servers, whether called directly or through an image or document library. The Hacker News says the exact path depends on the libraries an application uses.

The Hacker News also reports that updating the host operating system does not update a separate copy of Ghostscript bundled in a container image or application. Package status in pwn.ai’s survey of Linux distributions, as of last week and as relayed by The Hacker News (a record of package status, not a tested attack path):

  • Debian 12 (Bookworm): listed as vulnerable.
  • Amazon Linux 2, 2023 and 2027 Preview: fix pending.
  • SUSE Linux Enterprise 12 SP5 and parts of 15: fix in progress.
  • SUSE Linux Enterprise Server 16.0 and 16.1: fix in progress.
  • openSUSE Leap 16.0 and 16.1: affected.

The Hacker News reports that WordPress closed its own upload path in version 7.0.4 on August 12 under a separate identifier, CVE-2026-65640. It says that fix and the Ghostscript fix cover different points in the same chain, so updating one does not remove the need for the other.

What to do now

  1. Update Ghostscript to 10.08.0 or later, which The Hacker News says is the version where Artifex fixed the flaw.
  2. Check containers and applications for a bundled Ghostscript copy, since The Hacker News says a host package update does not change it.
  3. Check your distribution’s package status. If it is listed as vulnerable, pending or in progress, track the vendor fix. For distributions not listed above, the status is not confirmed in the sources.
  4. If you run WordPress, confirm it is on 7.0.4 or later in addition to the Ghostscript update, per the WordPress fix reported by The Hacker News.
  5. Until the renderer is updated, The Hacker News says the exposure can be reduced by requiring authentication on print queues and by limiting which file types an image processor accepts. It adds that system controls help too, and that in one test an AppArmor profile stopped the compromised interpreter from starting a shell.

The Hacker News says the one published proof-of-concept file shows only the core memory trick, without running a shell command, and fails on the patched 10.08.0 build.

Sources