Ghostscript Upload2Shell (CVE-2026-125396): What to Patch (2026)

Abstract server-room photograph illustrating a Ghostscript security update for CVE-2026-125396

Takeaway: On November 22, 2026, AlmaLinux and cPanel published fresh guidance for a Ghostscript issue tracked as CVE-2026-125396 and nicknamed Upload2Shell. A crafted document can escape Ghostscript’s -dSAFER sandbox and run commands as the account that renders the file. The upstream fix shipped in Ghostscript 10.08.0 on September 8, 2026. Debian and Ubuntu already published backports. As of AlmaLinux’s November 22 post, patched packages for AlmaLinux 8, 9, and 10 were in the testing repository, not yet in production, and the project said it was not aware of fixed packages for RHEL 8, 9, or 10.

The details below come from that AlmaLinux post, cPanel’s advisory, the Ghostscript 10.08.0 release notes, Debian’s CVE-2026-125396 tracker plus DSA-6516-1 and DLA-4914-1, and Ubuntu’s USN-8949-1. Researchers at pwn.ai published a public overview of the same issue. This article does not reconstruct a proof of concept or describe how to trigger the flaw. The sources reviewed here do not report in-the-wild exploitation, and this article does not add that claim.

What CVE-2026-125396 is

Ghostscript is the PostScript and PDF interpreter that many Linux servers use to convert, preview, print, or thumbnail documents. Applications often reach it indirectly through image or document libraries such as ImageMagick, rather than by calling the gs command themselves.

AlmaLinux describes Upload2Shell as a vulnerability that lets a crafted PostScript document escape Ghostscript’s -dSAFER sandbox and run commands as the user that renders the document. That is typically a service account, such as lp on a print queue or the web-server account on an upload handler. The project also notes that the file does not need a PostScript extension: image libraries that inspect file contents can hand a file named .jpg, .png, or .pdf to Ghostscript if the bytes are PostScript.

AlmaLinux scores the CVE at 8.5 under CVSS 4.0 with a local attack vector, because the flaw is in the interpreter rather than in a network service. In practice, whether it is reachable remotely depends on what feeds documents to Ghostscript. This article does not map those routes to specific request paths or reproduction steps.

The upstream fix, and what Artifex lists

Artifex released Ghostscript 10.08.0 on September 8, 2026. The official News page calls it a maintenance release that “addresses a number of potential security issues.” AlmaLinux and Debian’s tracker both map the Upload2Shell fix to upstream commit 1484854e0c8d in that 10.08.0 release, and to Artifex Bug 709684.

Artifex’s public CVE index currently lists five CVE identifiers as fixed in 10.08.0: CVE-2026-110133, CVE-2026-112922, CVE-2026-103226, CVE-2026-19547, and CVE-2026-39919. It does not currently display CVE-2026-125396. This article does not invent a mapping between that identifier and a row on Artifex’s table. The Debian tracker, Debian LTS advisory DLA-4914-1, and AlmaLinux’s November 22 post are the sources used here for the CVE-2026-125396 identifier and the 10.08.0 fix.

Distribution patches

If you install Ghostscript from a distribution, use that distribution’s fixed package rather than compiling 10.08.0 unless you already manage Ghostscript yourself. The versions below are taken from the official notices and trackers cited in each row. A later security build on the same branch is also fine when the tracker marks it fixed.

DistributionAdvisory or sourceFixed version (as published)
Upstream GhostscriptArtifex 10.08.0 (September 8, 2026); AlmaLinux and Debian map the Upload2Shell fix to this release10.08.0
Debian 13 (trixie)DSA-6516-1 (September 25, 2026). The September 25 announcement text named CVE-2026-39919; Debian’s tracker for the DSA now also lists CVE-2026-125396. The first fixed version is 10.05.1~dfsg-1+deb13u2; the tracker currently shows the trixie security package as 10.05.1~dfsg-1+deb13u3, also marked fixed.10.05.1~dfsg-1+deb13u2 or later on that branch
Debian 12 (bookworm, LTS)DLA-4914-1 (November 17, 2026), which lists CVE-2026-125396 among the fixed issues10.0.0~dfsg-11+deb12u9
Debian unstableDebian CVE tracker10.08.0~dfsg-1
Ubuntu 26.10USN-8949-1 (October 21, 2026)libgs10 / libgs10-common 10.07.1~dfsg-1ubuntu2.1
Ubuntu 26.04 LTSUSN-8949-1libgs10 / libgs10-common 10.06.0~dfsg-3ubuntu1.2
Ubuntu 24.04 LTSUSN-8949-1libgs10 / libgs10-common 10.02.1~dfsg1-0ubuntu7.10
Ubuntu 22.04 LTSUSN-8949-1libgs9 / libgs9-common 9.55.0~dfsg1-0ubuntu5.15
Ubuntu 20.04, 18.04, and 16.04 LTSUSN-8949-1, Ubuntu ProThe notice lists Ubuntu Pro package versions for these releases
AlmaLinux 8, 9, and 10AlmaLinux blog, November 22, 2026Testing-repo packages only, as of that post: 9.27-20.el8_10.alma.1 (EL8), 9.54.0-19.el9_8.3.alma.1 (EL9), and 10.02.1-16.el10_2.3.alma.1 (EL10), including the matching libgs subpackages

Two caveats belong with that table. First, Ubuntu’s USN-8949-1 describes a font-loader operand-validation issue discovered by Paulos Yibelo and, on the notice itself, lists that item with no CVE number. AlmaLinux credits the same researcher and says Debian and Ubuntu already shipped the backport that AlmaLinux later used. This article does not claim that the Ubuntu notice currently prints the CVE-2026-125396 identifier. Second, AlmaLinux said that, at the time of writing on November 22, it was not aware of fixed Ghostscript packages for RHEL 8, 9, or 10, and that the researchers had not established whether current RHEL-family packages already contained the fix. This article does not invent a Red Hat errata version.

A related, earlier WordPress core fix

This Ghostscript issue is not the same as a later WordPress core security release such as the WordPress 7.1.5 update. It is also not fixed merely by updating a plugin. On August 12, 2026, WordPress published WordPress 7.0.4, which the project described as an “Authenticated Author+ remote code execution via malicious file upload on sites that use Imagick and Ghostscript,” reported by pwn.ai and tracked as CVE-2026-65640. That is a WordPress-side change. It does not replace updating Ghostscript on the server, and a Ghostscript package update does not replace staying on a current WordPress release. Sites that already run WordPress 7.1.5 have the later core line, including that earlier 7.0.4 work, but they still need a patched Ghostscript if the interpreter on the host or in a container is old.

cPanel’s November 22 advisory also told hosting customers to keep WordPress up to date, to ensure Roundcube is on version 1.6.20 or higher in that environment, and to update Ghostscript to 10.08.0 or a distribution backport. Use cPanel’s own article for the steps that apply to a cPanel server.

What administrators should do

Update Ghostscript, or the distribution package that provides it, to a fixed version from the table above. Confirm the installed package, not just that a general system update ran. AlmaLinux notes that long-running services which have already loaded the Ghostscript library keep using the old copy until they are restarted, and that updating the host does not update a copy of Ghostscript inside a container or application bundle.

If you cannot install a patched package yet, AlmaLinux says there is no Ghostscript setting that removes the bug, because -dSAFER is the protection being bypassed. The project’s temporary advice is to reduce the ways an untrusted document can reach Ghostscript: do not share CUPS queues with networks you do not trust, require authentication on shared print queues, and, if you do not need PostScript, EPS, or PDF conversion, disable those ImageMagick coders so the library does not hand such files to Ghostscript. Those steps narrow exposure; they are not a substitute for the patched packages.

What these sources do not say

The AlmaLinux post, the Debian and Ubuntu advisories, and cPanel’s notice reviewed here do not state that this issue is being exploited in the wild. Researcher demonstrations and responsible-disclosure reports, including a production path that pwn.ai says Google later mitigated, are not the same as a confirmed campaign, and this article does not treat them as one. Artifex’s public CVE index also does not currently list CVE-2026-125396. If you need issue-by-issue technical detail beyond these operational summaries, use the official advisories and trackers linked above rather than a third-party write-up.

Frequently asked questions

What is CVE-2026-125396?

It is a Ghostscript vulnerability, also called Upload2Shell, in which a crafted document can escape the -dSAFER sandbox and run commands as the account that rendered the file. AlmaLinux and Debian’s security tracker use that CVE identifier.

Which Ghostscript version fixed it?

AlmaLinux and Debian’s tracker map the fix to Ghostscript 10.08.0, released on September 8, 2026. Distributions have also shipped backports to older package versions, listed in the table above.

Why is this in the news now if 10.08.0 shipped in September?

Public researcher documentation and vendor guidance continued after the upstream release. Debian’s bookworm LTS advisory that names CVE-2026-125396 is dated November 17, 2026. AlmaLinux published testing-repository packages, and cPanel published a hosting advisory, on November 22, 2026.

Are AlmaLinux and RHEL patched in production?

Not according to AlmaLinux’s November 22 post. Patched packages for AlmaLinux 8, 9, and 10 were in the testing repository that day, and the project said it was not aware of fixed packages for RHEL 8, 9, or 10. Check current repositories before you assume a production errata has shipped.

Does a WordPress update fix this?

No. WordPress 7.0.4, released on August 12, 2026, included a separate core fix (CVE-2026-65640) for an authenticated Author+ file-upload issue on sites that use Imagick and Ghostscript. That does not replace a patched Ghostscript package on the server. The later WordPress 7.1.5 core security release is also not a substitute for this interpreter update.

Is Ubuntu’s USN-8949-1 the same CVE?

Ubuntu’s October 21, 2026 notice includes a font-loader operand-validation issue reported by Paulos Yibelo and, on the notice itself, lists that item with no CVE number. AlmaLinux credits the same researcher and says Ubuntu already shipped the relevant backport. This article does not treat the USN page as currently listing CVE-2026-125396.

Has this been exploited in the wild?

The official advisories and the AlmaLinux post reviewed for this article do not state that attacks have been observed in the wild. This article does not add that claim.

What should I install today?

Install your distribution’s fixed Ghostscript package, or upstream 10.08.0 if you manage the interpreter yourself. On AlmaLinux, use the November 22 testing-package versions only if you accept installing from the testing repository, and confirm whether a production update has appeared since that post. Restart long-running services that already loaded the library, and remember that containers need their own update.

Comments

Leave a Reply