EulerOS Virtualization 3.0.6.6 : emacs (EulerOS-SA-2023-3397)

high Nessus Plugin ID 188915

Synopsis

The remote EulerOS Virtualization host is missing multiple security updates.

Description

According to the versions of the emacs packages installed, the EulerOS Virtualization installation on the remote host is affected by the following vulnerabilities :

- GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/etags.c uses the system C library function in its implementation of the ctags program. For example, a victim may use the 'ctags *' command (suggested in the ctags documentation) in a situation where the current working directory has contents that depend on untrusted input.
(CVE-2022-45939)

- An issue was discovered in GNU Emacs through 28.2. htmlfontify.el has a command injection vulnerability.
In the hfy-istext-command function, the parameter file and parameter srcdir come from external input, and parameters are not escaped. If a file name or directory name contains shell metacharacters, code may be executed. (CVE-2022-48339)

Note that Tenable Network Security has extracted the preceding description block directly from the EulerOS security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Update the affected emacs packages.

See Also

http://www.nessus.org/u?b8cd60b4

Plugin Details

Severity: High

ID: 188915

File Name: EulerOS_SA-2023-3397.nasl

Version: 1.0

Type: local

Published: 1/16/2024

Updated: 1/16/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.3

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

CVSS Score Source: CVE-2022-48339

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.8

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

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

Vulnerability Information

CPE: p-cpe:/a:huawei:euleros:emacs-common, p-cpe:/a:huawei:euleros:emacs-filesystem, p-cpe:/a:huawei:euleros:emacs-nox, p-cpe:/a:huawei:euleros:emacs, cpe:/o:huawei:euleros:uvp:3.0.6.6

Required KB Items: Host/cpu, Host/EulerOS/release, Host/EulerOS/rpm-list, Host/EulerOS/uvp_version, Host/local_checks_enabled

Exploit Ease: No known exploits are available

Patch Publication Date: 12/14/2023

Vulnerability Publication Date: 11/28/2022

Reference Information

CVE: CVE-2022-45939, CVE-2022-48339