CVE-2021-3781: artifex ghostscript Improper Input Validation
Vulnerability summary
CVE-2021-3781 is a critical (CVSS 9.9) Improper Input Validation vulnerability in artifex ghostscript. EPSS estimates a 83.91% chance of exploitation in the next 30 days, higher than 99.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 16-02-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated9.9CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.9CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.9CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
83.91%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 83.91% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Affected systems
Suse58 products
- ghostscript&distro=HPE Helion OpenStack 8< 9.52-23.42.1
- ghostscript&distro=SUSE Enterprise Storage 6< 9.52-155.1
- ghostscript&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 9.52-155.1
- ghostscript&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 9.52-155.1
- ghostscript&distro=SUSE Linux Enterprise High Performance Computing 15-ESPOS< 9.52-155.1
Opensuse5 products
- ghostscript-mini&distro=openSUSE Leap 15.2< 9.52-lp152.2.7.1
- ghostscript&distro=openSUSE Leap 15.2< 9.52-lp152.2.7.1
- ghostscript&distro=openSUSE Leap 15.3< 9.52-155.1
- libspectre&distro=openSUSE Leap 15.2< 0.2.8-lp152.4.3.1
- libspectre&distro=openSUSE Leap 15.3< 0.2.8-3.12.1
Alpine1 product
- ghostscript< 9.53.3-r1 | < 9.54-r1
Artifex1 product
- ghostscript9.50 | 9.52 | 9.53.3 | 9.54.0
Debian1 product
- ghostscript< 9.53.3~dfsg-8 | < 9.53.3~dfsg-7+deb11u1
Fedoraproject1 product
- fedoraEOL34
Mageia1 product
- ghostscript< 9.53.3-2.1.mga8
Ubuntu1 product
- ghostscript< 9.50~dfsg-5ubuntu4.3 | < 9.54.0~dfsg1-0ubuntu2
8 vendors · 69 products
References
20 linksShow all 20 references
- lists.opensuse.org/archives/…Advisory