Debian DLA-2708-1:php7.0 - LTS 安全性更新

high Nessus Plugin ID 151676

概要

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

說明

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

已在 php5 (一種伺服器端的已嵌入 HTML 指令碼語言) 中發現數個弱點。攻擊者可造成拒絕服務 (DoS)、記憶體損毀並可能執行任意程式碼,以及伺服器端要求偽造 (SSRF) 繞過。CVE-2019-18218 fileinfo:cdf.c 中的 cdf_read_property_info 未限制 CDF_VECTOR 元素的數量,進而允許堆積型緩衝區溢位 (4 位元組超出邊界寫入)。CVE-2020-7071 當使用 filter_var($url, FILTER_VALIDATE_URL) 等函數驗證 URL 時,PHP 將接受密碼無效的 URL 作為有效 URL。這可能導致仰賴 URL 的函式會錯誤剖析 URL,並產生錯誤的資料作為 URL 的元件。CVE-2021-21702 使用 SOAP 延伸模組連線至 SOAP 伺服器時,惡意 SOAP 伺服器可能會傳回格式錯誤的 XML 資料作為回應,進而造成 PHP 存取 NULL 指標,並因此造成損毀。CVE-2021-21704 多個 firebird 問題。CVE-2021-21705 FILTER_VALIDATE_URL 中存在 SSRF 繞過弱點。針對 Debian 9 Stretch,已在 7.0.33-0+deb9u11 版本中修正這些問題。建議您升級 php7.0 套件。有關 php7.0 安全性狀態的詳細資訊,請參閱其安全性追蹤頁面:https://security-tracker.debian.org/tracker/php7.0 有關 Debian LTS 安全公告、如何將這些更新套用至您的系統以及常見問題的詳細資訊,請參閱:https://wiki.debian.org/LTS

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

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

解決方案

升級 php7.0 套件。

針對 Debian 9 Stretch,已在 7.0.33-0+deb9u11 版本中修正這些問題。

另請參閱

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

https://security-tracker.debian.org/tracker/source-package/php7.0

https://www.debian.org/lts/security/2021/dla-2708

https://security-tracker.debian.org/tracker/CVE-2019-18218

https://security-tracker.debian.org/tracker/CVE-2020-7071

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

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

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

https://packages.debian.org/source/stretch/php7.0

Plugin 詳細資訊

嚴重性: High

ID: 151676

檔案名稱: debian_DLA-2708.nasl

版本: 1.5

類型: local

代理程式: unix

已發布: 2021/7/15

已更新: 2025/1/24

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: Medium

基本分數: 6.8

時間性分數: 5.3

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

CVSS 評分資料來源: CVE-2019-18218

CVSS v3

風險因素: High

基本分數: 7.8

時間性分數: 7

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

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

弱點資訊

CPE: p-cpe:/a:debian:debian_linux:php7.0-mbstring, p-cpe:/a:debian:debian_linux:php7.0-opcache, p-cpe:/a:debian:debian_linux:php7.0-sqlite3, p-cpe:/a:debian:debian_linux:php7.0-recode, p-cpe:/a:debian:debian_linux:php7.0-mcrypt, p-cpe:/a:debian:debian_linux:php7.0-json, cpe:/o:debian:debian_linux:9.0, p-cpe:/a:debian:debian_linux:php7.0-snmp, p-cpe:/a:debian:debian_linux:php7.0-pgsql, p-cpe:/a:debian:debian_linux:php7.0-pspell, p-cpe:/a:debian:debian_linux:php7.0-xml, p-cpe:/a:debian:debian_linux:php7.0-interbase, p-cpe:/a:debian:debian_linux:php7.0-phpdbg, p-cpe:/a:debian:debian_linux:libapache2-mod-php7.0, p-cpe:/a:debian:debian_linux:php7.0-zip, p-cpe:/a:debian:debian_linux:php7.0-common, p-cpe:/a:debian:debian_linux:php7.0-tidy, p-cpe:/a:debian:debian_linux:php7.0, p-cpe:/a:debian:debian_linux:php7.0-readline, p-cpe:/a:debian:debian_linux:php7.0-dba, p-cpe:/a:debian:debian_linux:php7.0-xsl, p-cpe:/a:debian:debian_linux:php7.0-enchant, p-cpe:/a:debian:debian_linux:php7.0-mysql, p-cpe:/a:debian:debian_linux:php7.0-soap, p-cpe:/a:debian:debian_linux:php7.0-xmlrpc, p-cpe:/a:debian:debian_linux:php7.0-bcmath, p-cpe:/a:debian:debian_linux:libphp7.0-embed, p-cpe:/a:debian:debian_linux:php7.0-cgi, p-cpe:/a:debian:debian_linux:php7.0-intl, p-cpe:/a:debian:debian_linux:php7.0-imap, p-cpe:/a:debian:debian_linux:php7.0-odbc, p-cpe:/a:debian:debian_linux:php7.0-sybase, p-cpe:/a:debian:debian_linux:php7.0-curl, p-cpe:/a:debian:debian_linux:php7.0-gd, p-cpe:/a:debian:debian_linux:php7.0-fpm, p-cpe:/a:debian:debian_linux:php7.0-gmp, p-cpe:/a:debian:debian_linux:php7.0-cli, p-cpe:/a:debian:debian_linux:php7.0-dev, p-cpe:/a:debian:debian_linux:php7.0-ldap, p-cpe:/a:debian:debian_linux:php7.0-bz2

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2021/7/15

弱點發布日期: 2019/10/21

參考資訊

CVE: CVE-2019-18218, CVE-2020-7071, CVE-2021-21702, CVE-2021-21704, CVE-2021-21705

IAVA: 2021-A-0009-S, 2021-A-0082-S