GLSA-200703-21 : PHP: Multiple vulnerabilities

Critical Nessus Plugin ID 24887


The remote Gentoo host is missing one or more security-related patches.


The remote host is affected by the vulnerability described in GLSA-200703-21 (PHP: Multiple vulnerabilities)

Several vulnerabilities were found in PHP by the Hardened-PHP Project and other researchers. These vulnerabilities include a heap-based buffer overflow in htmlentities() and htmlspecialchars() if called with UTF-8 parameters, and an off-by-one error in str_ireplace(). Other vulnerabilities were also found in the PHP4 branch, including possible overflows, stack corruptions and a format string vulnerability in the
*print() functions on 64 bit systems.
Impact :

Remote attackers might be able to exploit these issues in PHP applications making use of the affected functions, potentially resulting in the execution of arbitrary code, Denial of Service, execution of scripted contents in the context of the affected site, security bypass or information leak.
Workaround :

There is no known workaround at this time.


All PHP users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose 'dev-lang/php'

See Also

Plugin Details

Severity: Critical

ID: 24887

File Name: gentoo_GLSA-200703-21.nasl

Version: $Revision: 1.17 $

Type: local

Published: 2007/03/26

Modified: 2016/11/11

Dependencies: 12634

Risk Information

Risk Factor: Critical


Base Score: 10

Temporal Score: 7.8

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

Temporal Vector: CVSS2#E:POC/RL:OF/RC:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:php, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2007/03/20

Vulnerability Publication Date: 2006/11/02

Exploitable With

Metasploit (PHP 4 unserialize() ZVAL Reference Counter Overflow (Cookie))

Reference Information

CVE: CVE-2006-5465, CVE-2007-0906, CVE-2007-0907, CVE-2007-0908, CVE-2007-0909, CVE-2007-0910, CVE-2007-0911, CVE-2007-0988, CVE-2007-1286, CVE-2007-1375, CVE-2007-1376, CVE-2007-1380, CVE-2007-1383

BID: 20879, 22496, 22505, 22765, 22805, 22851, 22862

OSVDB: 30178, 30179, 32762, 32763, 32764, 32765, 32766, 32767, 32770, 32771, 32776, 32780, 32781, 33952, 34706, 34707, 34708, 34709, 34710, 34711, 34712, 34713, 34714, 34715

GLSA: 200703-21

CWE: 20, 189, 399