Debian DSA-5248-1:php-twig - 安全性更新

high Nessus Plugin ID 165714

概要

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

說明

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

- Twig 是一種適用於 PHP 的範本語言。當檔案系統載入器載入由使用者輸入名稱的範本時,低於 1.44.7 的1.x 版、低於 2.15.3 的 2.x 版低於 3.4.3 的 3.x 版會遇到問題。使用「@somewhere/../some.file」之類的命名空間時,使用者可以使用「source」或「include」陳述式從範本目錄外部讀取任意檔案。在這種情況下,可以繞過驗證。
1.44.7、2.15.3 和 3.4.3 版包含針對此類範本名稱驗證的修正。除了升級外,目前沒有其他已知的因應措施。(CVE-2022-39261)

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

解決方案

升級 php-twig 套件。

針對穩定的發行版本 (bullseye),已在 2.14.3-1+deb11u2 版本中修正此問題。

另請參閱

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020991

https://security-tracker.debian.org/tracker/source-package/php-twig

https://www.debian.org/security/2022/dsa-5248

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

https://packages.debian.org/source/bullseye/php-twig

Plugin 詳細資訊

嚴重性: High

ID: 165714

檔案名稱: debian_DSA-5248.nasl

版本: 1.3

類型: local

代理程式: unix

已發布: 2022/10/5

已更新: 2022/12/2

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

風險資訊

VPR

風險因素: Medium

分數: 4.4

CVSS v2

風險因素: High

基本分數: 7.8

時間分數: 5.8

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

CVSS 評分資料來源: CVE-2022-39261

CVSS v3

風險因素: High

基本分數: 7.5

時間分數: 6.5

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

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

弱點資訊

CPE: p-cpe:/a:debian:debian_linux:php-twig-doc, p-cpe:/a:debian:debian_linux:php-twig-extra-bundle, p-cpe:/a:debian:debian_linux:php-twig-html-extra, p-cpe:/a:debian:debian_linux:php-twig-inky-extra, p-cpe:/a:debian:debian_linux:php-twig-intl-extra, p-cpe:/a:debian:debian_linux:php-twig-markdown-extra, cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:php-twig, p-cpe:/a:debian:debian_linux:php-twig-cssinliner-extra

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

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2022/10/4

弱點發布日期: 2022/9/28

參考資訊

CVE: CVE-2022-39261