RCE in Artifex Ghostscript

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 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.

Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)

EPSS: 0.839 (99.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-3781?
CVE-2021-3781 is a critical-severity vulnerability in Artifex Ghostscript, classified under Improper Input Validation. CVSS score: 9.9/10. Published 2022-02-16.
How severe is CVE-2021-3781?
Critical severity. CVSS v3 base score is 9.9 out of 10.
Is CVE-2021-3781 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.