PHP: Multiple vulnerabilities
Gentoo Linux Security Advisory
||GLSA 200605-08 / php
||May 08, 2006
||May 15, 2007: 09
||arm hppa ppc s390 sh sparc x86 x86-fbsd
||alpha amd64 ia64 ppc64
#127939, #128883, #131135, #133524
PHP is affected by multiple issues, including a buffer overflow in
wordwrap() which may lead to execution of arbitrary code.
PHP is a widely-used general-purpose scripting language that is
especially suited for Web development and can be embedded into HTML.
Several vulnerabilities were discovered on PHP4 and PHP5 by Infigo,
Tonu Samuel and Maksymilian Arciemowicz. These included a buffer
overflow in the wordwrap() function, restriction bypasses in the copy()
and tempname() functions, a cross-site scripting issue in the phpinfo()
function, a potential crash in the substr_compare() function and a
memory leak in the non-binary-safe html_entity_decode() function.
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.
There is no known workaround at this point.
All PHP users should upgrade to the latest version:
Code Listing 3.1: Resolution
# emerge --sync
# emerge --ask --oneshot --verbose dev-lang/php