CVSS 4.0
8.5 highCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NKnown as Upload2Shell
High (8.5) in artifexsoftware ghostpdl. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExplain CVE-2026-125396 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-125396?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-125396?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-125396 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| ArtifexSoftware ghostpdl | before 10.08.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | ghostscript | 10.0.0~dfsg-11+deb12u9 | DEBIAN-CVE-2026-125396 DLA-4914-1 |
| Debian | 13 | ghostscript | 10.05.1~dfsg-1+deb13u2 | DEBIAN-CVE-2026-125396 DSA-6516-1 |
| Debian | 14 | ghostscript | 10.08.0~dfsg-1 | DEBIAN-CVE-2026-125396 |
| Ubuntu | 22.04:LTS, 24.04:LTS, 26.04:LTS and 4 more | ghostscript | no fix listed | UBUNTU-CVE-2026-125396 |
| Red Hat | enterprise_linux:8::appstream | libgs, ghostscript | 0:9.27-21.el8_10 | RHSA-2026:103524 |
| Red Hat | enterprise_linux:9::appstream | libgs, ghostscript | 0:9.54.0-20.el9_9.1 | RHSA-2026:103523 |
| Red Hat | enterprise_linux:10.3 | libgs, ghostscript | 0:10.02.1-17.el10_3.1 | RHSA-2026:103517 |
| openSUSE | Tumbleweed | ghostscript | 10.08.0-5.1 | openSUSE-SU-2026:12528-1 |
| AlmaLinux | 8 | libgs, ghostscript, libgs-devel and 5 more | 9.27-21.el8_10 | ALSA-2026:103524 |
| AlmaLinux | 9 | libgs, ghostscript, libgs-devel and 5 more | 9.54.0-20.el9_9.1 | ALSA-2026:103523 |
| AlmaLinux | 10 | libgs, ghostscript, libgs-devel and 4 more | 10.02.1-17.el10_3.1 | ALSA-2026:103517 |
| Rocky Linux | 8 | libgs, ghostscript, libgs-devel and 9 more | 0:9.27-21.el8_10 | RLSA-2026:103524 |
| Rocky Linux | 9 | libgs, ghostscript, libgs-devel and 9 more | 0:9.54.0-20.el9_9.1 | RLSA-2026:103523 |
| Rocky Linux | 10 | libgs, ghostscript, libgs-devel and 7 more | 0:10.02.1-17.el10_3.1 | RLSA-2026:103517 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.
Red Hat rates this Important.
This vulnerability is rated as an Important severity issue because circumventing the -dSAFER protection mechanism allows arbitrary code execution within the context of the executing application. In Red Hat Enterprise Linux environments, Ghostscript is commonly deployed to support print workflows, document viewers, and server-side conversion tasks. Although exploitation requires a user or service to process a maliciously crafted document, breaking the sandbox boundary defeats the primary isolation barrier protecting host systems from untrusted PostScript input.
Operational controls and configuration hardening can reduce exposure to this vulnerability:
1. Restrict untrusted input:
Do not open or process PostScript or PDF files received from untrusted or unverified sources.
2. Sandboxing and container isolation:
When Ghostscript is used in automated document conversion or web pipelines, run the process within a restricted container, an unprivileged user namespace, or under a confined SELinux profile to restrict access to the underlying system in the event of sandbox escape.
3. Disable PostScript/PDF delegates in ImageMagick:
If Ghostscript is invoked via ImageMagick and PostScript/PDF conversion is not required, disable the relevant coders by adding the following line inside the <policymap> section of /etc/ImageMagick-6/policy.xml or /etc/ImageMagick-7/policy.xml:
<policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" />
Caveats: Restricting document formats or enforcing sandbox isolation may cause failures in automated document rendering and printing workflows that depend on Ghostscript. If background daemons or web services cache ImageMagick policies, those services will need to be restarted for the policy changes to take effect.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | ghostscript | Affected | |
| Red Hat Enterprise Linux 6 | ghostscript | Out of support scope | |
| Red Hat Enterprise Linux 7 | ghostscript | Affected | |
| Red Hat Enterprise Linux 8 | ghostscript | Affected | |
| Red Hat Enterprise Linux 9 | ghostscript | Affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-125396.
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.