Debian DLA-499-1:php5 安全更新

critical Nessus 插件 ID 91397

简介

远程 Debian 主机缺少安全更新。

描述

- CVE-2015-8865 在低于 5.5.34、低于 5.6.20 的 5.6.x 和低于 7.0.5 的 7.x 的 PHP 中 Fileinfo 组件所使用的低于 5.23 的文件内,funcs.c 的 file_check_mem 函数未正确处理连续级别的跳转,其允许上下文有关的攻击者通过构建的 magic 文件,造成拒绝服务(缓冲区溢出和应用程序崩溃)或可能执行任意代码。

- CVE-2015-8866 libxml_disable_entity_loader 设置会在低于 5.5.22 和低于 5.6.6 的 5.6.x 的 PHP 中的线程 ext/libxml/libxml.c 之间共享,其使用 PHP-FPM 时,并未将每个线程和其他线程中的 libxml_disable_entity_loader 变更隔离,这允许远程攻击者通过构建的 XML 文档发动 XML 外部实体 (XXE) 和 XML 实体扩展 (XEE) 攻击,此问题与 CVE-2015-5161 相关。

- CVE-2015-8878 在低于 5.5.28 和低于 5.6.12 的 5.6.x 的 PHP 中,main/php_open_temporary_file.c 未确保线程安全,这允许远程攻击者通过利用可执行许多临时文件访问的应用程序,造成拒绝服务(争用条件和堆内存损坏)。

- CVE-2015-8879 在低于 5.6.12 的 PHP 中,ext/odbc/php_odbc.c 的 odbc_bindcols 函数未正确处理 SQL_WVARCHAR 列的驱动程序行为,这允许远程攻击者有机会通过利用 odbc_fetch_array 函数,访问某种类型的 Microsoft SQL Server 表,造成拒绝服务(应用程序崩溃)。

- CVE-2016-4070 在低于 5.5.34、低于 5.6.20 的 5.6.x 和低于 7.0.5 的 7.x 的 PHP 中,ext/standard/url.c 的 php_raw_url_encode 函数中存在整数溢出,其允许远程攻击者通过 rawurlencode 函数的长字符串,造成拒绝服务(应用程序崩溃)。

- CVE-2016-4071 在低于 5.5.34、低于 5.6.20 的 5.6.x 和低于 7.0.5 的 7.x 的 PHP 中,ext/snmp/snmp.c 的 php_snmp_error 函数中存在格式字符串漏洞,其允许远程攻击者通过 SNMP::get 调用中的格式字符串说明符,执行任意代码。

- CVE-2016-4072 在低于 5.5.34、低于 5.6.20 的 5.6.x 和低于 7.0.5 的 7.x 的 PHP 中,Phar 扩展允许远程攻击者通过构建的文件名执行任意代码,这一点已由 ext/phar/phar.c 中的 phar_analyze_path 函数未正确处理 \0 字符证实。

- CVE-2016-4073 在低于 5.5.34、低于 5.6.20 的 5.6.x 和低于 7.0.5 的 7.x 的 PHP 中,ext/mbstring/libmbfl/mbfl/mbfilter.c 的 mbfl_strcut 函数中存在多个整数溢出,其允许远程攻击者通过构建的 mb_strcut 调用,造成拒绝服务(应用程序崩溃)或可能执行任意代码。

- CVE-2016-4343 在低于 5.6.18 和低于 7.0.3 的 7.x 的 PHP 中,ext/phar/dirstream.c 的 phar_make_dirstream 函数未正确处理大小为零的 ././@LongLink 文件,这允许远程攻击者通过构建的 TAR 存档,造成拒绝服务(未初始化的指针取消引用)或可能造成其他不明影响。

- CVE-2016-4537 在低于 5.5.35、低于 5.6.21 的 5.6.x 和低于 7.0.6 的 7.x 的 PHP 中,ext/bcmath/bcmath.c 的 bcpowmod 函数接受缩放参数使用负整数,这允许远程攻击者通过构建的调用,造成拒绝服务或可能造成其他不明影响。

- CVE-2016-4539 在低于 5.5.35、低于 5.6.21 的 5.6.x 和低于 7.0.6 的 7.x 的 PHP 中,ext/xml/xml.c 的 xml_parse_into_struct 函数允许远程攻击者通过在第二个参数中构建的 XML 数据,造成拒绝服务(缓冲区读取不足和分段错误)或可能造成其他不明影响,从而导致解析器级别为零。

- CVE-2016-4540

- CVE-2016-4541 在低于 5.5.35、低于 5.6.21 的 5.6.x 和低于 7.0.6 的 7.x 的 PHP 中,ext/intl/grapheme/grapheme_string.c 的 grapheme_strpos 函数允许远程攻击者通过负偏移,造成拒绝服务(越界读取)或可能造成其他不明影响。

- CVE-2016-4542

- CVE-2016-4543

- CVE-2016-4544 在低于 5.5.35、低于 5.6.21 的 5.6.x 和低于 7.0.6 的 7.x 的 PHP 中,ext/exif/exif.c 的 exif_process_* 函数未验证 IFD 大小,这允许远程攻击者通过构建的标头数据,造成拒绝服务(越界读取)或可能造成其他不明影响。

注意:Tenable Network Security 已直接从 DLA 安全公告中提取上述描述块。Tenable 已尝试在不引入其他问题的情况下尽可能进行了自动整理和排版。

解决方案

升级受影响的程序包。

另见

https://lists.debian.org/debian-lts-announce/2016/05/msg00053.html

https://packages.debian.org/source/wheezy/php5

插件详情

严重性: Critical

ID: 91397

文件名: debian_DLA-499.nasl

版本: 2.13

类型: local

代理: unix

发布时间: 2016/6/1

最近更新时间: 2021/1/11

支持的传感器: Agentless Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

风险信息

VPR

风险因素: High

分数: 7.3

CVSS v2

风险因素: High

基本分数: 7.5

时间分数: 5.9

矢量: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

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:libphp5-embed, 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-fpm, 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-mysqlnd, 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:7.0

必需的 KB 项: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

可利用: true

易利用性: Exploits are available

补丁发布日期: 2016/5/31

漏洞发布日期: 2016/5/20

参考资料信息

CVE: CVE-2015-8865, CVE-2015-8866, CVE-2015-8878, CVE-2015-8879, CVE-2016-4070, CVE-2016-4071, CVE-2016-4072, CVE-2016-4073, CVE-2016-4343, CVE-2016-4537, CVE-2016-4539, CVE-2016-4540, CVE-2016-4541, CVE-2016-4542, CVE-2016-4543, CVE-2016-4544