GLSA-202211-11 : GPL Ghostscript: Multiple Vulnerabilities

critical Nessus Plugin ID 168044

Description

The remote host is affected by the vulnerability described in GLSA-202211-11 (GPL Ghostscript: Multiple Vulnerabilities)

- 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. (CVE-2021-3781)

- A NULL pointer dereference vulnerability was found in Ghostscript, which occurs when it tries to render a large number of bits in memory. When allocating a buffer device, it relies on an init_device_procs defined for the device that uses it as a prototype that depends upon the number of bits per pixel. For bpp > 64, mem_x_device is used and does not have an init_device_procs defined. This flaw allows an attacker to parse a large number of bits (more than 64 bits per pixel), which triggers a NULL pointer dereference flaw, causing an application to crash. (CVE-2022-2085)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

All GPL Ghostscript users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose >=app-text/ghostscript-gpl-9.56.1

See Also

https://security.gentoo.org/glsa/202211-11

https://bugs.gentoo.org/show_bug.cgi?id=812509

https://bugs.gentoo.org/show_bug.cgi?id=852944

Plugin Details

Severity: Critical

ID: 168044

File Name: gentoo_GLSA-202211-11.nasl

Version: 1.3

Type: local

Published: 11/22/2022

Updated: 10/3/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.3

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2021-3781

CVSS v3

Risk Factor: Critical

Base Score: 9.9

Temporal Score: 8.9

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:ghostscript-gpl, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 11/22/2022

Vulnerability Publication Date: 9/23/2021

Reference Information

CVE: CVE-2021-3781, CVE-2022-2085