JLSEC-2026-1480: Path Traversal
An issue was discovered in Artifex Ghostscript before 10.03.1. Path traversal and command execution can occur (via a crafted PostScript document) because of path reduction in base/gpmisc.c. For example, restrictions on use of %pipe% can be bypassed via the aa/../%pipe%command# output filename.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/Ghostscript_jllto a version that resolves this vulnerability.Fixed in 10.8.0+0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.03.1
Event History
Frequently Asked Questions
What conditions are required for exploitation?
An attacker needs to persuade a user to process a crafted PostScript document with an affected Ghostscript version. The documented technique uses path traversal in an output filename to bypass restrictions on %pipe% and execute a command.
Which deployments should be prioritized for triage?
Prioritize systems using julia/ghostscript_jll that process PostScript documents from untrusted or user-controlled sources. The vulnerability affects Artifex Ghostscript versions before 10.03.1.
What can be done if upgrading is not immediately possible?
Avoid processing untrusted PostScript documents with the affected software. In particular, prevent attacker-controlled output filenames from reaching Ghostscript, since the described bypass uses a traversal sequence ending in a %pipe% command filename.