Debian dla-3863:jupyter-nbconvert - 安全性更新

medium Nessus Plugin ID 206424

概要

遠端 Debian 主機缺少安全性相關更新。

說明

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

------------------------------------------------------------------------- Debian LTS 公告 DLA-3863-1 [email protected] https://www.debian.org/lts/security/Guilhem Moulin 2024 年 9 月 2 日https://wiki.debian.org/LTS-------------------------------------------------------------------------

套件:nbconvert 版本:5.6.1-3+deb11u1 CVE ID:CVE-2021-32862

GitHub Security Lab 的 Alvaro Muoz 在 nbconvert (一種用於透過 Jinja 範本將記事本轉換為其他多種格式的工具和程式庫) 中發現了 16 種利用跨網站指令碼弱點的方式。

當使用 nbconvert 產生 HTML 版本的使用者可控記事本時,如果這些 HTML 記事本是由 Web 伺服器提供且沒有嚴格的內容安全性原則 (例如:nbviewer),則攻擊者可能插入可導致跨網站指令碼 (XSS) 弱點的任意 HTML。

* GHSL-2021-1013:notebook.metadata.language_info.pygments_lexer 中的 XSS 弱點;
* GHSL-2021-1014:notebook.metadata.title 中的 XSS 弱點;
* GHSL-2021-1015:notebook.metadata.widgets 中的 XSS 弱點;
* GHSL-2021-1016:notebook.cell.metadata.tags 中的 XSS 弱點;
* GHSL-2021-1017:輸出資料文字/html 儲存格中的 XSS 弱點;
* GHSL-2021-1018:輸出資料圖像/svg+xml 儲存格中的 XSS 弱點;
* GHSL-2021-1019:notebook.cell.output.svg_filename 中的 XSS 弱點;
* GHSL-2021-1020:輸出資料文字/markdown 儲存格中的 XSS 弱點;
* GHSL-2021-1021:輸出資料應用程式/javascript 儲存格中的 XSS 弱點;
* GHSL-2021-1022:output.metadata.filenames image/png 和 image/jpeg 中的 XSS 弱點;
* GHSL-2021-1023:output data image/png 和 image/jpeg 儲存格中的 XSS 弱點;
* GHSL-2021-1024:output.metadata.width/height image/png 和 image/jpeg 中的 XSS 弱點;
* GHSL-2021-1025:輸出資料應用程式/vnd.jupyter.widget-state+ json 儲存格中的 XSS 弱點;
* GHSL-2021-1026:輸出資料應用程式/vnd.jupyter.widget-view+ json 儲存格中的 XSS 弱點;
* GHSL-2021-1027:原始儲存格中的 XSS 弱點;以及
* GHSL-2021-1028:markdown 儲存格中的 XSS 弱點。

其中部分弱點 (即 GHSL-2021-1017、-1020、-1021 和
-1028) 實際上是設計決定,其中 text/html、text/markdown、application/JavaScript 和 markdown 儲存格應允許任意 JavaScript 程式碼執行。因此,這些弱點根據預設為開啟狀態,但使用者現可透過新的 HTMLExporter 選項「sanitize_html」,選擇退出並去除所有 JavaScript 元素。

針對 Debian 11 Bullseye,此問題已在 5.6.1-3+deb11u1 版本中修正。

建議您升級 nbconvert 套件。

如需有關 nbconvert 安全性狀態的詳細資訊,請參閱其安全追蹤頁面:
https://security-tracker.debian.org/tracker/nbconvert

有關 Debian LTS 安全公告、如何將這些更新套用至您的系統以及常見問題的詳細資訊,請參閱:https://wiki.debian.org/LTSAttachment:signature.ascDescription: PGP signature

Tenable 已直接從 Debian 安全公告擷取前置描述區塊。

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

解決方案

升級 jupyter-nbconvert 套件。

另請參閱

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

https://security-tracker.debian.org/tracker/CVE-2021-32862

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

Plugin 詳細資訊

嚴重性: Medium

ID: 206424

檔案名稱: debian_DLA-3863.nasl

版本: 1.1

類型: local

代理程式: unix

已發布: 2024/9/2

已更新: 2024/9/2

支援的感應器: Agentless Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

風險資訊

VPR

風險因素: Low

分數: 3.8

CVSS v2

風險因素: Medium

基本分數: 5.5

時間分數: 4.3

媒介: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:N

CVSS 評分資料來源: CVE-2021-32862

CVSS v3

風險因素: Medium

基本分數: 5.4

時間分數: 4.9

媒介: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

時間媒介: CVSS:3.0/E:P/RL:O/RC:C

弱點資訊

CPE: cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:jupyter-nbconvert, p-cpe:/a:debian:debian_linux:python3-nbconvert, p-cpe:/a:debian:debian_linux:python-nbconvert-doc

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2024/9/2

弱點發布日期: 2022/8/10

參考資訊

CVE: CVE-2021-32862