Debian DSA-5360-1:emacs - 安全性更新

critical Nessus Plugin ID 171900

概要

遠端 Debian 主機上缺少一個或多個安全性更新。

說明

遠端 Debian 11 主機上安裝的多個套件受到 dsa-5360 公告中提及的多個弱點影響。

- 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,但不會逸出功能名稱參數。因此,惡意的 Ruby 來源檔案可能會造成命令執行。(CVE-2022-48338)

- 在 GNU Emacs 28.2 及之前版本中發現一個問題。htmlfontify.el 有一個命令插入弱點。
在 hfy-istext-command 函式中,參數檔案和參數 srcdir 來自外部輸入,且參數不會逸出。如果檔案名稱或目錄名稱包含 shell 中繼字元,則可能會執行程式碼。(CVE-2022-48339)

請注意,Nessus 並未測試這些問題,而是僅依據應用程式自我報告的版本號碼作出判斷。

解決方案

升級受影響的 emacs 套件。

針對穩定的發行版本 (bullseye),這些問題已在版本 1 中修正

另請參閱

https://security-tracker.debian.org/tracker/source-package/emacs

https://www.debian.org/security/2023/dsa-5360

https://security-tracker.debian.org/tracker/CVE-2022-48337

https://security-tracker.debian.org/tracker/CVE-2022-48338

https://security-tracker.debian.org/tracker/CVE-2022-48339

https://packages.debian.org/source/bullseye/emacs

Plugin 詳細資訊

嚴重性: Critical

ID: 171900

檔案名稱: debian_DSA-5360.nasl

版本: 1.2

類型: local

代理程式: unix

已發布: 2023/2/24

已更新: 2023/10/24

支援的感應器: Agentless Assessment, Frictionless Assessment Agent, 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: p-cpe:/a:debian:debian_linux:emacs, p-cpe:/a:debian:debian_linux:emacs-bin-common, p-cpe:/a:debian:debian_linux:emacs-common, p-cpe:/a:debian:debian_linux:emacs-el, p-cpe:/a:debian:debian_linux:emacs-gtk, p-cpe:/a:debian:debian_linux:emacs-lucid, p-cpe:/a:debian:debian_linux:emacs-nox, cpe:/o:debian:debian_linux:11.0

必要的 KB 項目: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2023/2/23

弱點發布日期: 2023/2/20

參考資訊

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