Proof of Concept Available for Ghostscript Upload2Shell Vulnerability

Summary
A proof of concept for Ghostscript’s CVE-2026-125396 (“Upload2Shell”) demonstrates a use-after-free flaw that can bypass the -dSAFER sandbox and enable arbitrary code execution. Artifex patched it in September; no active exploitation is reported.
Key points
- The use-after-free flaw, CVE-2026-125396, is dubbed Upload2Shell and affects Ghostscript.
- A proof of concept described by pwn.ai shows how custom PostScript or PDF files could bypass the -dSAFER sandbox and execute arbitrary code.
- Artifex patched the issue in September, and affected distributions are being updated.
- The article reports no known active exploitation.
- Organizations should upgrade Ghostscript when updates are available and avoid processing untrusted files until then.
Article Details
- Vulnerability Types
- Use-after-free
- Sandbox bypass
- Severity
- High (CVSS 4.0 score: 8.5)
- Exploitation Status
- not_reported
- Exploit Availability
- public_poc
- Patch Status
- available
- Workarounds
- Prevent Ghostscript from processing untrusted files until updates are available.
