Secunia Logo
Netsikker nu! 2008
 
PHP Multiple Vulnerabilities
Secunia Advisory: SA30048
Release Date: 2008-05-02
Last Update: 2008-05-08
Popularity: 11,530 views

Critical:
Moderately critical
Impact: Unknown
Security Bypass
DoS
System access
Where: From remote
Solution Status: Vendor Patch

Software:PHP 5.2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2008-0599
CVE-2008-2050
CVE-2008-2051
CVE-2008-2107
CVE-2008-2108


Description:
Some vulnerabilities have been reported in PHP, where some have unknown impacts and others can be exploited by malicious users to bypass certain security restrictions, and potentially by malicious people to cause a DoS (Denial of Service) or to compromise a vulnerable system.

1) An unspecified error in the FastCGI SAPI can be exploited to cause a stack-based buffer overflow.

2) An error in the processing of multibyte characters within the "escapeshellcmd()" and "escapeshellarg()" functions can be exploited to escape the inserted backslash or quote characters via certain multibyte characters.

Successful exploitation allows to bypass the "safe_mode_exec_dir" and "disable_functions" directives, and potentially to inject arbitrary shell commands via user controlled input, but requires that the shell uses a locale with a variable width character (e.g. GBK, EUC-KR, SJIS).

3) A vulnerability is caused due to an error during path translation in cgi_main.c. This can potentially be exploited to execute arbitrary code, but depends on how a targeted application is using PHP.

4) An error in cURL can be exploited to bypass the "safe_mode" directive.

5) A boundary error in PCRE can potentially be exploited by malicious people to cause a DoS or compromise a vulnerable system.

For more information:
SA28923

NOTE: A weakness in the "GENERATE_SEED()" macro has also been reported.

The vulnerabilities are reported in versions prior to 5.2.6.

Solution:
Update to version 5.2.6.
http://www.php.net/downloads.php

Provided and/or discovered by:
1) The vendor credits Andrei Nigmatulin.
2) Stefan Esser.
3) The vendor credits Ryan Permeh.
4) The vendor credits Maksymilian Arciemowicz.

Changelog:
2008-05-07: Updated "Description" and "Original Advisory" section with additional information. Added CVE references and link to US-CERT.
2008-05-08: Added CVE reference.

Original Advisory:
PHP:
http://www.php.net/ChangeLog-5.php

Stefan Esser:
http://www.sektioneins.de/advisories/SE-2008-03.txt
http://www.sektioneins.de/advisories/SE-2008-02.txt

Other References:
SA28923:
http://secunia.com/advisories/28923/

US-CERT VU#147027:
http://www.kb.cert.org/vuls/id/147027


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Subdreamer Light Global Variables SQL Injection Vulnerability // 34 views
2. Trend Micro ServerProtect Multiple Buffer Overflow Vulnerabilities // 31 views
3. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 26 views
4. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 25 views
5. CA ARCserve Backup Multiple Vulnerabilities // 25 views
6. Red Hat update for cups // 21 views
7. FUJITSU Interstage Products Apache Tomcat Security Bypass // 20 views
8. CUPS Multiple Vulnerabilities // 20 views
9. Built2go Real Estate Listings "event_id" SQL Injection // 19 views
10. Gentoo Portage Insecure Python Module Search Path Security Issue // 18 views