Debian DLA-307-1:php5 安全性更新

critical Nessus Plugin ID 85808

概要

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

說明

- CVE-2015-3307 在 5.4.40 之前版本、5.5.24 之前的 5.5.x 版本以及 5.6.8 之前的 5.6.x 版 PHP 中,ext/phar/phar.c 的 phar_parse_metadata 函式可讓遠端攻擊者透過特製的 tar 封存,造成拒絕服務 (堆積詮釋資料損毀),或可能造成其他不明影響。

- CVE-2015-3411 + CVE-2015-3412 修正錯誤 #69353 (對於多種 PHP 延伸模組的路徑遺漏 NULL 位元組檢查)

- CVE-2015-4021 在 5.4.41 之前版本、5.5.25 之前的 5.5.x 版本以及 5.6.9 之前的 5.6.x 版 PHP 中,ext/phar/tar.c 的 phar_parse_tarfile 函式未驗證檔案名稱的第一個字元是否與 \0 字元不同,進而允許遠端攻擊者透過 tar 封存中的特製項目,造成拒絕服務 (整數反向溢位和記憶體損毀)。

- CVE-2015-4022 在 5.4.41 之前版本、5.5.25 之前的 5.5.x 版本以及 5.6.9 之前的 5.6.x 版 PHP 中,ext/ftp/ftp.c 的 ftp_genlist 函式中有整數溢位,允許遠端 FTP 伺服器透過 LIST 命令的長回覆執行任意程式碼,進而導致堆積型緩衝區溢位。

- CVE-2015-4025 5.4.41 之前版本、5.5.25 之前的 5.5.x 版本以及 5.6.9 之前的 5.6.x 版 PHP,會在特定情況下遇到 \x00 字元時截斷路徑名稱,進而允許遠端攻擊者透過 (1) set_include_path、(2) tempnam、(3) rmdir 或 (4) readlink 的特製引數,繞過預定的延伸模組限制,並存取具有非預期名稱的檔案或目錄。注意:此弱點之所以存在,是因為 CVE-2006-7243 的修正不完整。

- CVE-2015-4026 5.4.41 之前版本、5.5.25 之前的 5.5.x 版本以及 5.6.9 之前的 5.6.x 版 PHP 中的 pcntl_exec 實作,會在遇到 \x00 字元時截斷路徑名稱,進而可能允許遠端攻擊者透過特製的第一個引數,繞過預定的延伸模組限制並執行具有非預期名稱的檔案。注意:
此弱點之所以存在,是因為 CVE-2006-7243 的修正不完整。

- CVE-2015-4147 在 5.4.39 之前版本、5.5.23 之前的 5.5.x 版本、5.6.7 之前的 5.6.x 版 PHP 中,ext/soap/soap.c 的 SoapClient::__call 方法未驗證
__default_headers 是否為陣列,進而允許遠端攻擊者透過提供具有非預期資料類型的特製序列化資料 (與「類型混淆」問題有關),執行任意程式碼。

- CVE-2015-4148 在 5.4.39 之前版本、5.5.23 之前的 5.5.x 版本以及 5.6.7 之前的 5.6.x 版 PHP 中,ext/soap/soap.c 的 do_soap_call 函式未驗證 uri 內容是否為字串,進而允許遠端攻擊者透過提供具有 int 資料類型的特製序列化資料 (與「類型混淆」問題有關),取得敏感資訊。

- CVE-2015-4598 以 NULL 不正確處理路徑

- CVE-2015-4599 exception::getTraceAsString 中的類型混淆弱點

- CVE-2015-4600 + CVE-2015-4601 新增類型檢查

- CVE-2015-4602 使用 SoapFault 之 unserialize() 中的類型混淆資訊洩漏弱點

- CVE-2015-4604 + CVE-2015-4605 使用 Fileinfo 處理特製檔案時的拒絕服務 (已在 CVE-2015-temp-68819.patch 中修正)

- CVE-2015-4643 改善錯誤 #69545 (ftp_genlist() 中導致堆積溢位的整數溢位) 的修正

- CVE-2015-4644 修正錯誤 #69667 (php_pgsql_meta_data 中的 segfault)

- CVE-2015-5589 無效檔案上 Phar::convertToData 中的 Segfault

- CVE-2015-5590 phar_fix_filepath 中的緩衝區溢位和堆疊損毀

注意:Tenable Network Security 已直接從 DLA 安全性公告擷取前置描述區塊。Tenable 已盡量在不造成其他問題的前提下,嘗試自動清理並將其格式化。

解決方案

升級受影響的套件。

另請參閱

https://lists.debian.org/debian-lts-announce/2015/09/msg00002.html

https://packages.debian.org/source/squeeze-lts/php5

Plugin 詳細資訊

嚴重性: Critical

ID: 85808

檔案名稱: debian_DLA-307.nasl

版本: 2.10

類型: local

代理程式: unix

已發布: 2015/9/8

已更新: 2021/1/11

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: Critical

基本分數: 10

時間分數: 7.8

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

CVSS v3

風險因素: Critical

基本分數: 9.8

時間分數: 8.8

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

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

弱點資訊

CPE: p-cpe:/a:debian:debian_linux:libapache2-mod-php5, p-cpe:/a:debian:debian_linux:libapache2-mod-php5filter, p-cpe:/a:debian:debian_linux:php-pear, p-cpe:/a:debian:debian_linux:php5, p-cpe:/a:debian:debian_linux:php5-cgi, p-cpe:/a:debian:debian_linux:php5-cli, p-cpe:/a:debian:debian_linux:php5-common, p-cpe:/a:debian:debian_linux:php5-curl, p-cpe:/a:debian:debian_linux:php5-dbg, p-cpe:/a:debian:debian_linux:php5-dev, p-cpe:/a:debian:debian_linux:php5-enchant, p-cpe:/a:debian:debian_linux:php5-gd, p-cpe:/a:debian:debian_linux:php5-gmp, p-cpe:/a:debian:debian_linux:php5-imap, p-cpe:/a:debian:debian_linux:php5-interbase, p-cpe:/a:debian:debian_linux:php5-intl, p-cpe:/a:debian:debian_linux:php5-ldap, p-cpe:/a:debian:debian_linux:php5-mcrypt, p-cpe:/a:debian:debian_linux:php5-mysql, p-cpe:/a:debian:debian_linux:php5-odbc, p-cpe:/a:debian:debian_linux:php5-pgsql, p-cpe:/a:debian:debian_linux:php5-pspell, p-cpe:/a:debian:debian_linux:php5-recode, p-cpe:/a:debian:debian_linux:php5-snmp, p-cpe:/a:debian:debian_linux:php5-sqlite, p-cpe:/a:debian:debian_linux:php5-sybase, p-cpe:/a:debian:debian_linux:php5-tidy, p-cpe:/a:debian:debian_linux:php5-xmlrpc, p-cpe:/a:debian:debian_linux:php5-xsl, cpe:/o:debian:debian_linux:6.0

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2015/9/7

弱點發布日期: 2015/6/9

參考資訊

CVE: CVE-2015-3307, CVE-2015-3411, CVE-2015-3412, CVE-2015-4021, CVE-2015-4022, CVE-2015-4025, CVE-2015-4026, CVE-2015-4147, CVE-2015-4148, CVE-2015-4598, CVE-2015-4599, CVE-2015-4600, CVE-2015-4601, CVE-2015-4602, CVE-2015-4604, CVE-2015-4605, CVE-2015-4643, CVE-2015-4644, CVE-2015-5589, CVE-2015-5590

BID: 73357, 74413, 74700, 74703, 74902, 74904, 75056, 75103, 75233, 75241, 75244, 75246, 75249, 75250, 75251, 75255, 75291, 75292, 75970, 75974