CVE-2026-125396: Upload2Shell
- Vendor
- Artifex Software
Upload2Shell is a sandbox-bypass and arbitrary code execution vulnerability in the Type 1 font-loading code of Ghostscript releases before 10.08.0. The internal .putgstringcopy procedure invokes the privileged .forceput operator without validating operand types. A crafted PostScript or PDF document can trigger a type error and recover that operator through a document-controlled error handler. The recovered operator enables a use-after-free across save/restore operations, allowing an attacker to bypass -dSAFER restrictions and execute arbitrary code. Applications that delegate previews, thumbnail generation, or print conversion to Ghostscript can expose the vulnerable interpreter to remotely supplied documents.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of resources accessible to the Ghostscript process. Attackers can escape document-processing restrictions, execute commands, and access or modify files with the rendering service account's permissions. Network-facing upload, email-thumbnail, and printing workflows can turn the interpreter vulnerability into server-side remote code execution. Exploitation does not automatically grant root privileges; operating-system confinement and service-account permissions limit the resulting access.
Mitigation
If you can’t patch tonight, do this now.
Until patched, suspend rendering of untrusted PostScript and PDF documents and disable automatic previews or thumbnails where practical. Restrict accepted input formats and prevent image-processing delegates from handing untrusted PostScript or EPS content to Ghostscript; filename-extension filtering alone is insufficient. Require authentication and restrict network access to shared print queues. Isolate rendering workers, minimize service-account permissions, and apply operating-system confinement such as AppArmor. These measures reduce exposure or impact but do not repair the flaw; -dSAFER is not an effective defense against this vulnerability.
Remediation
Patch, then assume compromise.
Upgrade every Ghostscript instance to version 10.08.0 or later, or install a vendor package explicitly containing the backported fix for CVE-2026-125396. Fixed Debian packages include 10.05.1~dfsg-1+deb13u2 for Debian 13 and 10.0.0~dfsg-11+deb12u9 for Debian 12. Verify the actual interpreter used by each rendering worker, including copies bundled with applications or container images; updating the host package alone does not update those copies. Apply relevant application-level fixes as well, but do not treat them as substitutes for patching Ghostscript.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-125396 exploited in the wild?
- As of Nov 22, 2026, Mallory has no reports of CVE-2026-125396 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-125396?
- As of Nov 22, 2026, Mallory has found no public exploit for CVE-2026-125396.
- Is there a patch for CVE-2026-125396?
- Upgrade every Ghostscript instance to version 10.08.0 or later, or install a vendor package explicitly containing the backported fix for CVE-2026-125396. Fixed Debian packages include 10.05.1~dfsg-1+deb13u2 for Debian 13 and 10.0.0~dfsg-11+deb12u9 for Debian 12.
- What products are affected by CVE-2026-125396?
- Artifex Software Ghostscript.
- How severe is CVE-2026-125396?
- CVE-2026-125396 has a CVSS v4 score of 8.5 (High) and an EPSS score of 0.16% (6th percentile) as of Nov 22, 2026.
Recent activity
50 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.