BlogSecurity
CVE-2026-125396: Ghostscript Upload2Shell - Floor 10.08.0 / Debian 12 u9, Ubuntu package revision not gs --version

CVE-2026-125396 is a -dSAFER bypass in Artifex Ghostscript before 10.08.0. CNA VulnCheck titles it Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery. Scores: CVSS 3.1 7.8 HIGH (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) and CVSS 4.0 8.5 HIGH. CWE-648. Published 9 November 2026, updated 22 November. Finders on the CVE record: Paulos Yibelo and pwn.ai. Fix commit 1484854e0c8ddfda1baa4ad4cd965b8a9790aa81 (bug 709684). Upstream release Ghostscript 10.08.0 (gs10080) 8 September 2026.[1][2][3]
cPanel named it Upload2Shell on 22 November 2026: remote command execution on Ghostscript earlier than 10.08.0. Their application floors: WordPress 6.8.8 / 6.9.7 / 7.0.4 (and higher) and Roundcube 1.6.20. WordPress.org’s own 7.0.4 note (12 August) is a separate application CVE - CVE-2026-65640 - Author+ RCE via Imagick + Ghostscript.[4][5]
This is not on CISA KEV. Catalog we pulled this morning: 2026.11.30, 1,810 entries, dateReleased 2026-11-30T19:44:39.2733Z. No CVE-2026-125396 row.[10]
This is not CVE-2026-39919 (JPEG 2000 heap overflow, Wordfence, also floor 10.08.0). Same package number, different bug, different finder. Yesterday’s NFS2ROOT post does not close this. upcp does not move gs on the OS.
gs --version is not the floor. Distros backport. Ubuntu 22.04’s USN package still prints 9.55.0. Read the full package revision.[6]
What it is
Vendor-published facts, and nothing past them.
CVE.org, verbatim: Ghostscript before 10.08.0 contains a -dSAFER bypass in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. Attackers can supply crafted PostScript or PDF documents that trigger a type error, recover .forceput via a custom error handler, and cause a use-after-free across save/restore to execute arbitrary code.[1]
pwn.ai’s public write-up (the finder’s page, not a second CVE) says the helper is part of Type 1 font loading, is marked executeonly, and still has to run. A typecheck in copy can be caught; the document’s error handler resumes at .forceput. They describe a later save/restore lifetime violation that turns that store into native memory control, then a -dSAFER state change. That is their research narrative. We did not run their file.[3]
The fix (Artifex commit 1484854e) checks operands before .putgstringcopy can fail in copy. pwn.ai also notes a later commit (e0421767) that moves the helper into C. The CVE record points at the first commit.[1][3]
This is not:
- CVE-2026-39919 (JPEG 2000 output adapter heap overflow). Different file, different CWE, same 10.08.0 train.
- A WordPress core bug by itself. WordPress 7.0.4 closed one upload path (CVE-2026-65640). Roundcube, Plesk previews, CUPS, Imagick delegates, and leftover
gsinside containers are still the interpreter.[4][5] - An ImageMagick CVE. ImageMagick is often the pipe. The overflow/bypass is in Ghostscript.
- CISA KEV. Absence from KEV is not “safe.”[10]
We are not publishing a PostScript sample, a GitHub PoC link, or a “how to recover .forceput” recipe.
How serious is it?
VulnCheck (CNA): 7.8 / 8.5, local, user interaction required on the 3.1 vector (UI:R). That is the CNA vector. It is not a network 9.8.[1]
cPanel: “can allow for remote command execution” on Ghostscript before 10.08.0. They do not say “in the wild.”[4]
pwn.ai / THN (researcher claims, labelled as such): ordinary upload, preview, and print features in about ten applications can feed the interpreter. Several of those paths needed no login in their tests (Debian 13 CUPS queue, Roundcube attachment thumbnail, some WP plugin public uploads). WordPress core needed an Author+ account. One Plesk test hit an AppArmor profile that blocked the shell. CSA has not reproduced those application results. We did not either.[3][7][8]
Sophos (23 November): proof-of-concept code is publicly available. Sophos is not aware of public reports of exploitation in the wild at that date.[9]
CISA KEV: not listed on catalog 2026.11.30.[10]
What nobody in the CVE / cPanel texts published:
- Actively exploited / not exploited (CISA).
- A CVSS that matches the unauthenticated web-upload story. The CNA score stays local + UI.
- A packet signature you can drop in Suricata.
Treat “unauth RCE via .png upload” as a researcher demonstration of a pipe, not as the CNA vector.
Who is affected
You are in the published blast radius if all of these are true:
- Something on the box runs Ghostscript (
gs,libgs) before the floor for that tree - including ImageMagick / Imagick / Pillow / libvips delegates that startgsfor you. - Untrusted PDF / PostScript / EPS (sometimes under a
.png/.jpgname) can reach that renderer: WordPress media, Roundcube thumbnails, Plesk file manager previews, CUPS, a conversion API, a container image that still bundles oldgs. -dSAFERis not a mitigator for this bug. The CVE is a bypass of it.[1][9]
Ghostscript interpreter floor (upstream): 10.08.0 or a vendor backport of commit 1484854e.[1][2]
Debian Security Tracker this morning:[11]
| Release | Package | Status |
|---|---|---|
| bookworm | 10.0.0~dfsg-11+deb12u8 |
vulnerable |
| bookworm (security) | 10.0.0~dfsg-11+deb12u9 |
fixed (DLA-4914-1) |
| trixie | 10.05.1~dfsg-1+deb13u3 |
fixed (DSA-6516-1 first at +deb13u2) |
| forky / sid | 10.08.0~dfsg-2 |
fixed |
Ubuntu: two facts, do not collapse them.
- CVE page last updated 18 November 2026 still marks 26.10 / 26.04 / 24.04 / 22.04 / 20.04 (and older) Needs evaluation. We are not inventing a CVE-mapped Ubuntu floor from that page.[12]
- USN-8949-1 (21 October 2026) patched Ghostscript for seven releases and described Paulos Yibelo’s font-operand finding as “No CVE number.” That is the same finder and the same class of bug; Ubuntu had not attached CVE-2026-125396 on the USN page we opened. Package versions in that USN:[6]
| Ubuntu | USN-8949-1 package |
|---|---|
| 26.10 | 10.07.1~dfsg-1ubuntu2.1 |
| 26.04 LTS | 10.06.0~dfsg-3ubuntu1.2 |
| 24.04 LTS | 10.02.1~dfsg1-0ubuntu7.10 |
| 22.04 LTS | 9.55.0~dfsg1-0ubuntu5.15 |
| 20.04 LTS (Pro) | 9.50~dfsg-5ubuntu4.15+esm3 |
Amazon Linux tracker (modified 12 November): AL2 and AL2023 Pending Fix; AL2027 Preview Fixed (ALAS2027-2026-379).[13]
We did not get a current RHEL / AlmaLinux / CloudLinux errata ID for CVE-2026-125396 this morning. Do not invent one. Check rpm -q ghostscript / dnf updateinfo on the box.
cPanel application floors (their article, 22 November):[4]
- WordPress 6.8.8, 6.9.7, 7.0.4 or higher (7.1.x is already past that if you actually updated).
- Roundcube 1.6.20+. Check
rpm -q cpanel-roundcubemail. cPanel 138 shipped Roundcube 1.6.20 in 138.0.19 (26 October) - that is the Roundcube floor, not the Ghostscript floor.
WordPress.org 7.0.4 (12 August): Author+ RCE via malicious upload on sites that use Imagick and Ghostscript. CVE CVE-2026-65640. Backports “through to the 4.7 branch.” Only current WP is supported.[5]
A WP core bump does not replace gs for Roundcube, Plesk, CUPS, or a plugin that shells out to ImageMagick.
What to do now
- Find the binary that actually renders.
gs --versionplus the package revision (dpkg -l ghostscript,rpm -q ghostscript). Alsowhich gs, ImageMagickdelegates.xml, andgsinside Docker/Podman images. Root’s PATH is often a different copy. - Patch Ghostscript. Debian 12: security
10.0.0~dfsg-11+deb12u9or newer. Debian 13:10.05.1~dfsg-1+deb13u2or newer. Ubuntu: install the USN-8949-1 revisions in the table (or newer) even if the CVE page still says Needs evaluation - then re-check the CVE page later. Anything else: 10.08.0 or the vendor backport that names bug 709684 / this CVE.[6][11] - Patch the pipes cPanel named. WordPress to 7.0.4+ (or the 6.8.8 / 6.9.7 backports). Roundcube to 1.6.20+ (
/scripts/upcpifcpanel-roundcubemailis older). That is necessary and not sufficient.[4][5] - If you cannot move
gstoday: cPanel’s stopgap is ImageMagickpolicy.xmldenying thegsdelegate and the PS/PS2/PS3/EPS/PDF/XPS coders, then restart Apache/PHP-FPM. They warn this breaks previews, thumbnails, and some Roundcube/WordPress image work. Reverse it after Ghostscript is patched. Sophos:-dSAFERalone does not protect you.[4][9] - Hunt after you patch. The update does not remove a webshell an attacker already planted.
Versions with no 10.08.0
EOL Ghostscript in appliances, old cPanel EA overlays, and frozen container images will not grow a 10.08.0 string. Distro backports can still be fine - Debian 12’s fixed package is still 10.0.0. If there is no backport:
- Isolate the renderer (no untrusted PDF/PS/EPS into Imagick/gs).
- Apply the ImageMagick policy stopgap.
- Plan a distro or image rebuild.
A WAF is not a Ghostscript patch.
How to spot a compromise
An attacker who gets code execution in the render user (often the web user, nobody, or a CUPS filter uid) will usually try to stay: a PHP file in uploads, a cron, outbound curl/wget.
Look for:
gs/ ImageMagick workers starting shells or downloaders- New PHP under
wp-content/uploads/or Roundcube temp - Unexpected outbound from the web / mail user
- New cron / unexpected uid processes after a thumbnail or print job
If you suspect a compromise, isolate and keep web, mail, and CUPS logs before you clean. We are not publishing exploit steps.
FAQ
Is there a patch? Yes. Upstream 10.08.0 on 8 September 2026. Debian 12 security u9. Ubuntu USN-8949-1 (CVE ID was not on that notice). Amazon Linux 2/2023 still Pending on 12 November.
Is WordPress enough? No. 7.0.4 / 6.8.8 / 6.9.7 close CVE-2026-65640 (Author+ Imagick path). Roundcube, Plesk, CUPS, and other Imagick callers still need gs.
Has it been exploited? Sophos, 23 November: not aware of wild reports. CISA KEV 2026.11.30 does not list it. pwn.ai demonstrated application pipes in a lab. Those are different facts.[9][10]
Does -dSAFER save you? No. The CVE is a SAFER bypass.[1]
Is this CVE-2026-39919? No. Same 10.08.0 train, different bug.
Honesty
- We did not exploit this. We did not feed anyone’s upload form.
- CNA CVSS is local / UI:R. Researcher write-ups describe network pipes. We are not “correcting” VulnCheck to 9.8.
- Ubuntu’s CVE page (18 Nov) still says Needs evaluation. USN-8949-1 exists anyway, with No CVE number on the Yibelo bullet. Operators should match package revision, not the CVE page checkbox.
- pwn.ai’s ten-app RCE list is theirs. CSA did not reproduce it. Neither did we.
- We are not linking a public PoC.
Sources
[1] https://www.cve.org/CVERecord?id=CVE-2026-125396 - VulnCheck CNA, published 9 Nov 2026
[2] https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81 - operand check
[3] https://pwn.ai/upload2shell - finder write-up (research claims labelled as such)
[4] https://support.cpanel.net/hc/en-us/articles/45216747700503-Security-CVE-2026-125396-Ghostscript-Upload2Shell - 22 Nov 2026
[5] https://wordpress.org/news/2026/08/wordpress-7-0-4-release/ - CVE-2026-65640, 12 Aug 2026
[6] https://ubuntu.com/security/notices/USN-8949-1 - 21 Oct 2026, Yibelo finding “No CVE number”
[7] https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html - 22 Nov 2026
[8] https://labs.cloudsecurityalliance.org/research/csa-research-note-ghostscript-upload2shell-cve-2026-125396-2/ - CSA has not reproduced
[9] https://www.sophos.com/en-us/security-advisories/sophos-sa-20261123-upload2shell - 23 Nov 2026
[10] CISA KEV JSON catalogVersion 2026.11.30, count 1810, dateReleased 2026-11-30T19:44:39.2733Z
[11] https://security-tracker.debian.org/tracker/CVE-2026-125396 - bookworm u9 fixed
[12] https://ubuntu.com/security/CVE-2026-125396 - last updated 18 Nov 2026, Needs evaluation
[13] https://explore.alas.aws.amazon.com/CVE-2026-125396.html - AL2/AL2023 Pending Fix, modified 12 Nov 2026

