Critical severity · published Feb 16, 2022
CVE-2021-3781
A trivial sandbox (enabled with the `-dSAFER` option) escape flaw was found in the ghostscript interpreter by injecting a specially crafted pipe command
9.9
CVSS
83.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)83.9% · higher than 100% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FE
Fedora · Fedoraproject
34 · source: NVD
GH
Ghostscript · Artifex
9.50; 9.52; 9.53.3; 9.54.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-3781
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-3781
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2002271
Patch
https://ghostscript.com/CVE-2021-3781.html
Third Party Advisory
https://security.gentoo.org/glsa/202211-11
More from Ghostscript
7.8
CVE-2017-8291
Artifex Ghostscript Type Confusion Vulnerability
9.8
CVE-2025-27837
An issue was discovered in Artifex Ghostscript before 10.05.0
9.8
CVE-2025-27836
An issue was discovered in Artifex Ghostscript before 10.05.0
9.8
CVE-2025-27832
An issue was discovered in Artifex Ghostscript before 10.05.0
9.8
CVE-2025-27831
An issue was discovered in Artifex Ghostscript before 10.05.0
