RHEL 9:emacs (RHSA-2023: 2626)

critical Nessus 插件 ID 175437

简介

远程 Red Hat 主机缺少一个或多个 emacs 安全更新。

描述

远程 Redhat Enterprise Linux 9 主机上安装的程序包受到 RHSA-2023: 2626 公告中提及的多个漏洞的影响。

- GNU Emacs 28.2 及其之前版本允许攻击者通过源代码文件名称中的 shell 元字符执行命令,这是因为 lib-src/etags.c 在其 etags 程序的实现中使用了系统 C 库函数。例如,如果当前工作目录具有依赖于不可信输入的内容,受害者即可使用 etags -u * 命令(如 etags 文档中的建议)。(CVE-2022-48337)

- 在 GNU Emacs 28.2 及之前版本中发现一个问题。在 ruby-mode.el 中,ruby-find-library-file 函数存在本地命令注入漏洞。ruby-find-library-file 函数指绑定到 C-c C-f 的交互式函数。在函数内部,通过 shell-command-to-string 调用外部命令 gem,但 feature-name 参数未经转义处理。因此,恶意的 Ruby 源文件可能会造成命令执行。(CVE-2022-48338)

- 28.2 及之前版本的 GNU Emacs 中发现一个问题。 htmlfontify.el 存在命令注入漏洞。
在 hfy-istext-command 函数中,参数文件和参数 srcdir 来自外部输入,且参数未经转义处理。如果文件名或目录名包含 shell 元字符,则可能导致代码执行。(CVE-2022-48339)

- 在 Emacs 文本编辑器中发现一个缺陷。使用 ob-latex.el 中的 org-babel-execute: latex 函数处理特制的 org-mode 代码可能会导致任意命令执行。存在此 CVE 的原因是 Red Hat Enterprise Linux 8.8 和 Red Hat Enterprise Linux 9.2 中 emacs 程序包的 CVE-2023-28617 安全回归。(CVE-2023-2491)

请注意,Nessus 尚未测试这些问题,而是只依据应用程序自我报告的版本号进行判断。

解决方案

更新 RHEL emacs 程序包,依据 RHSA-2023: 2626 中的指南。

另见

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

https://access.redhat.com/security/updates/classification/#important

https://access.redhat.com/errata/RHSA-2023:2626

https://bugzilla.redhat.com/show_bug.cgi?id=2171987

https://bugzilla.redhat.com/show_bug.cgi?id=2171988

https://bugzilla.redhat.com/show_bug.cgi?id=2171989

https://bugzilla.redhat.com/show_bug.cgi?id=2192873

插件详情

严重性: Critical

ID: 175437

文件名: redhat-RHSA-2023-2626.nasl

版本: 1.3

类型: local

代理: unix

发布时间: 2023/5/12

最近更新时间: 2024/4/28

支持的传感器: Agentless Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

风险信息

VPR

风险因素: Medium

分数: 6.7

CVSS v2

风险因素: Critical

基本分数: 10

时间分数: 7.4

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

CVSS 分数来源: CVE-2022-48337

CVSS v3

风险因素: Critical

基本分数: 9.8

时间分数: 8.5

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

时间矢量: CVSS:3.0/E:U/RL:O/RC:C

漏洞信息

CPE: cpe:/o:redhat:enterprise_linux:9, p-cpe:/a:redhat:enterprise_linux:emacs, p-cpe:/a:redhat:enterprise_linux:emacs-common, p-cpe:/a:redhat:enterprise_linux:emacs-filesystem, p-cpe:/a:redhat:enterprise_linux:emacs-lucid, p-cpe:/a:redhat:enterprise_linux:emacs-nox

必需的 KB 项: Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list, Host/cpu

易利用性: No known exploits are available

补丁发布日期: 2023/5/9

漏洞发布日期: 2023/2/20

参考资料信息

CVE: CVE-2022-48337, CVE-2022-48338, CVE-2022-48339, CVE-2023-2491

CWE: 77

RHSA: 2023:2626