Vulnerability · Published Feb 16, 2022 · Assigned by redhat
CVE-2021-3781
Critical 9.9
In plain English
A critical-severity improper input validation in ghostscript. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 83.9% (higher than 99.7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | ghostscript | 9.54-r1 | ALPINE-CVE-2021-3781 |
| Alpine:v3.21 | ghostscript | 9.54-r1 | ALPINE-CVE-2021-3781 |
| Alpine:v3.22 | ghostscript | 9.54-r1 | ALPINE-CVE-2021-3781 |
| Alpine:v3.23 | ghostscript | 9.54-r1 | ALPINE-CVE-2021-3781 |
| Alpine:v3.24 | ghostscript | 9.54-r1 | ALPINE-CVE-2021-3781 |
| Debian:12 | ghostscript | 9.53.3~dfsg-8 | DEBIAN-CVE-2021-3781 |
| Debian:13 | ghostscript | 9.53.3~dfsg-8 | DEBIAN-CVE-2021-3781 |
| Debian:14 | ghostscript | 9.53.3~dfsg-8 | DEBIAN-CVE-2021-3781 |
| Ubuntu:22.04:LTS | ghostscript | 9.54.0~dfsg1-0ubuntu2 | UBUNTU-CVE-2021-3781 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | ghostscript | ghostpdl 9.55.0 |
Weakness: CWE-20