Skip to content

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. This flaw allows a specially crafted document to...

CriticalCVSS 9.9 EPSS 83.9%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

19 packages: 17 fixed.

PackageAffectedFixed inStatus
alpine/ghostscript(Alpine v3.13) < 9.53.3-r1 9.53.3-r1 Fixed
alpine/ghostscript(Alpine v3.14) < 9.54-r1 9.54-r1 Fixed
alpine/ghostscript(Alpine v3.15) < 9.54-r1 9.54-r1 Fixed
alpine/ghostscript(Alpine v3.16) < 9.54-r1 9.54-r1 Fixed
alpine/ghostscript(Alpine v3.17) < 9.54-r1 9.54-r1 Fixed
alpine/ghostscript(Alpine v3.18) < 9.54-r1 9.54-r1 Fixed
alpine/ghostscript(Alpine v3.19) < 9.54-r1 9.54-r1 Fixed
alpine/ghostscript(Alpine v3.20) < 9.54-r1 9.54-r1 Fixed
alpine/ghostscript(Alpine v3.21) < 9.54-r1 9.54-r1 Fixed
alpine/ghostscript(Alpine v3.22) < 9.54-r1 9.54-r1 Fixed
alpine/ghostscript(Alpine v3.23) < 9.54-r1 9.54-r1 Fixed
alpine/ghostscript(Alpine v3.24) < 9.54-r1 9.54-r1 Fixed
debian/ghostscript(Debian 12) < 9.53.3~dfsg-8 9.53.3~dfsg-8 Fixed
debian/ghostscript(Debian 13) < 9.53.3~dfsg-8 9.53.3~dfsg-8 Fixed
debian/ghostscript(Debian 14) < 9.53.3~dfsg-8 9.53.3~dfsg-8 Fixed
ubuntu/ghostscript(Ubuntu 20.04) < 9.50~dfsg-5ubuntu4.3; = 9.27~dfsg+0-0ubuntu3; = 9.27~dfsg+0-0ubuntu4; = 9.50~dfsg-5ubuntu1 +5 more 9.50~dfsg-5ubuntu4.3 Fixed
ubuntu/ghostscript(Ubuntu 22.04) < 9.54.0~dfsg1-0ubuntu2 9.54.0~dfsg1-0ubuntu2 Fixed
artifex ghostscript = 9.50; = 9.52; = 9.53.3; = 9.54.0 No fix listed Versions listed
fedoraproject fedora = 34 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
ubuntu/ghostscript(Ubuntu:22.04) < 9.54.0~dfsg1-0ubuntu2 9.54.0~dfsg1-0ubuntu2
debian/ghostscript(Debian:12) < 9.53.3~dfsg-8 9.53.3~dfsg-8
debian/ghostscript(Debian:13) < 9.53.3~dfsg-8 9.53.3~dfsg-8
debian/ghostscript(Debian:14) < 9.53.3~dfsg-8 9.53.3~dfsg-8
artifex ghostscript = 9.50 No fix listed
artifex ghostscript = 9.52 No fix listed
artifex ghostscript = 9.53.3 No fix listed
artifex ghostscript = 9.54.0 No fix listed
fedoraproject fedora = 34 No fix listed
alpine/ghostscript(Alpine:v3.13) < 9.53.3-r1 9.53.3-r1
alpine/ghostscript(Alpine:v3.14) < 9.54-r1 9.54-r1
alpine/ghostscript(Alpine:v3.15) < 9.54-r1 9.54-r1
alpine/ghostscript(Alpine:v3.16) < 9.54-r1 9.54-r1
alpine/ghostscript(Alpine:v3.17) < 9.54-r1 9.54-r1
alpine/ghostscript(Alpine:v3.18) < 9.54-r1 9.54-r1
alpine/ghostscript(Alpine:v3.19) < 9.54-r1 9.54-r1
alpine/ghostscript(Alpine:v3.20) < 9.54-r1 9.54-r1
alpine/ghostscript(Alpine:v3.21) < 9.54-r1 9.54-r1
alpine/ghostscript(Alpine:v3.22) < 9.54-r1 9.54-r1
alpine/ghostscript(Alpine:v3.23) < 9.54-r1 9.54-r1
alpine/ghostscript(Alpine:v3.24) < 9.54-r1 9.54-r1
ubuntu/ghostscript(Ubuntu:20.04) < 9.50~dfsg-5ubuntu4.3 9.50~dfsg-5ubuntu4.3
ubuntu/ghostscript(Ubuntu:20.04) = 9.27~dfsg+0-0ubuntu3 No fix listed
ubuntu/ghostscript(Ubuntu:20.04) = 9.27~dfsg+0-0ubuntu4 No fix listed
ubuntu/ghostscript(Ubuntu:20.04) = 9.50~dfsg-5ubuntu1 No fix listed
Show 5 more
ProductAffected versionsFixed in
ubuntu/ghostscript(Ubuntu:20.04) = 9.50~dfsg-5ubuntu2 No fix listed
ubuntu/ghostscript(Ubuntu:20.04) = 9.50~dfsg-5ubuntu3 No fix listed
ubuntu/ghostscript(Ubuntu:20.04) = 9.50~dfsg-5ubuntu4 No fix listed
ubuntu/ghostscript(Ubuntu:20.04) = 9.50~dfsg-5ubuntu4.1 No fix listed
ubuntu/ghostscript(Ubuntu:20.04) = 9.50~dfsg-5ubuntu4.2 No fix listed

References