CVE-2021-3781
ghostscript: sandbox escape using '%pipe%'
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high), Ubuntu (high).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.13 | ghostscript | 9.53.3-r1 |
| alpine 3.14 | ghostscript | 9.54-r1 |
| alpine 3.15 | ghostscript | 9.54-r1 |
| alpine 3.16 | ghostscript | 9.54-r1 |
| alpine 3.17 | ghostscript | 9.54-r1 |
| alpine 3.18 | ghostscript | 9.54-r1 |
| alpine 3.19 | ghostscript | 9.54-r1 |
| alpine 3.20 | ghostscript | 9.54-r1 |
| alpine 3.21 | ghostscript | 9.54-r1 |
| alpine 3.22 | ghostscript | 9.54-r1 |
| alpine 3.23 | ghostscript | 9.54-r1 |
| alpine 3.24 | ghostscript | 9.54-r1 |
Show all 25 entries from 25 sources
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.13 | ghostscript | 9.53.3-r1 |
| alpine 3.14 | ghostscript | 9.54-r1 |
| alpine 3.15 | ghostscript | 9.54-r1 |
| alpine 3.16 | ghostscript | 9.54-r1 |
| alpine 3.17 | ghostscript | 9.54-r1 |
| alpine 3.18 | ghostscript | 9.54-r1 |
| alpine 3.19 | ghostscript | 9.54-r1 |
| alpine 3.20 | ghostscript | 9.54-r1 |
| alpine 3.21 | ghostscript | 9.54-r1 |
| alpine 3.22 | ghostscript | 9.54-r1 |
| alpine 3.23 | ghostscript | 9.54-r1 |
| alpine 3.24 | ghostscript | 9.54-r1 |
| alpine edge | ghostscript | 9.54-r1 |
| debian 11 | ghostscript | 9.53.3~dfsg-7+deb11u1 |
| debian 12 | ghostscript | 9.53.3~dfsg-8 |
| debian 13 | ghostscript | 9.53.3~dfsg-8 |
| debian 14 | ghostscript | 9.53.3~dfsg-8 |
| echo | ghostscript | 9.53.3~dfsg-8 |
| root.io alpine 3.17 | rootio-ghostscript | 9.54-r1 |
| root.io debian 12 | rootio-ghostscript | 9.53.3~dfsg-8 |
| ubuntu 20.04 | ghostscript | 9.50~dfsg-5ubuntu4.3 |
| ubuntu 20.04-ESM | ghostscript | 9.50~dfsg-5ubuntu4.3 |
| ubuntu 21.04 | ghostscript | 9.53.3~dfsg-7ubuntu0.1 |
| ubuntu 21.10 | ghostscript | 9.54.0~dfsg1-0ubuntu2 |
| ubuntu 22.04 | ghostscript | 9.54.0~dfsg1-0ubuntu2 |
References
- https://access.redhat.com/security/cve/CVE-2021-3781
- https://bugzilla.redhat.com/show_bug.cgi?id=2002271
- https://ghostscript.com/CVE-2021-3781.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-3781
- https://security.gentoo.org/glsa/202211-11
- https://ubuntu.com/security/notices/USN-5075-1
- https://www.cve.org/CVERecord?id=CVE-2021-3781