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.

Severity (CVSS NVD)9.9Critical
Exploit odds (30 days)83.9%top 0.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20ghostscript9.54-r1ALPINE-CVE-2021-3781
Alpine:v3.21ghostscript9.54-r1ALPINE-CVE-2021-3781
Alpine:v3.22ghostscript9.54-r1ALPINE-CVE-2021-3781
Alpine:v3.23ghostscript9.54-r1ALPINE-CVE-2021-3781
Alpine:v3.24ghostscript9.54-r1ALPINE-CVE-2021-3781
Debian:12ghostscript9.53.3~dfsg-8DEBIAN-CVE-2021-3781
Debian:13ghostscript9.53.3~dfsg-8DEBIAN-CVE-2021-3781
Debian:14ghostscript9.53.3~dfsg-8DEBIAN-CVE-2021-3781
Ubuntu:22.04:LTSghostscript9.54.0~dfsg1-0ubuntu2UBUNTU-CVE-2021-3781

Affected products (as reported)

VendorProductVersions
n/a ghostscript ghostpdl 9.55.0

Weakness: CWE-20

References