CVE-2021-3781
ghostscript: sandbox escape using '%pipe%'
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · September 10, 2021
Updated · November 22, 2025
Description
A trivial sandbox (enabled with the -dSAFER option) escape flaw was found in the ghostscript interpreter by injecting a specially crafted pipe command. This flaw allows a specially crafted document to execute arbitrary commands on the system in the context of the ghostscript interpreter. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Statement
This flaw does not affect ghostscript versions prior to 9.50. As a result, Red Hat Enterprise Linux versions 5, 6, 7 and 8 are not affected by this flaw.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')