PHP multibyte string extension buffer overflow

php-multibyte-bo (47525) The risk level is classified as HighHigh Risk

Description:

The multibyte string extension for PHP is vulnerable to a heap-based buffer overflow, caused by improper bounds checking by the mb_convert_encoding(), mb_check_encoding(), mb_convert_variables() and mb_parse_str() functions. A remote attacker could exploit this vulnerability using a specially-crafted string containing an HTML entity to overflow a buffer and execute arbitrary code on the system or cause the affected application to crash.

*CVSS:

Base Score: 6.8
  Access Vector: Network
  Access Complexity: Medium
  Authentication: None
  Confidentiality Impact: Partial
  Integrity Impact: Partial
  Availability Impact: Partial
 
Temporal Score: 5
  Exploitability: Unproven
  Remediation Level: Official-Fix
  Report Confidence: Confirmed

Consequences:

Gain Access

Remedy:

For Apple Mac OS:
Apply Apple Security Update 2009-002, available from the Apple Web site. See References.

Upgrade to the latest version of PHP (5.2.8 or later), available from the PHP Web site. See References.

For other distributions:
Apply the appropriate update for your system. See References.

References:

  • Apple Web site: About the security content of Security Update 2009-002 / Mac OS X v10.5.7.
  • HP Security Bulletin HPSBMA02492 SSRT100079: HP System Management Homepage (SMH) for Linux and Windows, Remote Cross Site Scripting (XSS), Denial of Service (DoS), Execution of Arbitrary Code, Unauthorized Access.
  • HP Security Bulletin HPSBUX02431 SSRT090085 rev.1: HP-UX Running Apache Web Server Suite, Remote Denial of Service (DoS), Execution of Arbitrary Code.
  • PHP Bug #45722: mb_check_encoding segmentation fault .
  • PHP CVS Repository: [cvs] Diff of /php-src/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c.
  • PHP Web site: PHP: Hypertext Preprocessor.
  • ASA-2009-161: php security update (RHSA-2009-0337)
  • ASA-2009-255: HPSBUX02431 SSRT090085 rev.1 - HP-UX Running Apache Web Server SuiteRemote Denial of Service (DoS) Execution of Arbitrary Code
  • BID-32948: PHP 'mbstring' Extension Buffer Overflow Vulnerability
  • BID-39632: HP System Management Homepage CVE-2010-1034 Unspecified Remote Vulnerability
  • CVE-2008-5557: Heap-based buffer overflow in ext/mbstring/libmbfl/filters/mbfilter_htmlent.c in the mbstring extension in PHP 4.3.0 through 5.2.6 allows context-dependent attackers to execute arbitrary code via a crafted string containing an HTML entity, which is not properly handled during Unicode conversion, related to the (1) mb_convert_encoding, (2) mb_check_encoding, (3) mb_convert_variables, and (4) mb_parse_str functions.
  • DSA-1789: php5 -- several vulnerabilities
  • GLSA-201001-03: PHP: Multiple vulnerabilities
  • MDVSA-2009:045: php
  • MDVSA-2009:065: php4
  • RHSA-2009-0337: Moderate: php security update
  • RHSA-2009-0338: Moderate: php security update
  • RHSA-2009-0350: Moderate: php security update
  • SA35074: Apple Mac OS X Security Update Fixes Multiple Vulnerabilities
  • SA35650: HP-UX Apache Web Server Suite Multiple Vulnerabilities
  • SECTRACK ID: 1021482: PHP Buffer Overflow in Multibyte String Extension May Let Users Execute Arbitrary Code
  • SUSE-SR:2009:004: SUSE Security Summary Report
  • SUSE-SR:2009:008: SUSE Security Summary Report

Platforms Affected:

  • Apache HTTP Server 2.0.59
  • Apache HTTP Server 2.2.8
  • Apache Tomcat 5.5.27
  • Apple Mac OS X 10.5
  • Apple Mac OS X 10.5.1
  • Apple Mac OS X 10.5.2
  • Apple Mac OS X 10.5.3
  • Apple Mac OS X 10.5.4
  • Apple Mac OS X 10.5.5
  • Apple Mac OS X 10.5.6
  • Apple Mac OS X Server 10.5
  • Apple Mac OS X Server 10.5.1
  • Apple Mac OS X Server 10.5.2
  • Apple Mac OS X Server 10.5.3
  • Apple Mac OS X Server 10.5.4
  • Apple Mac OS X Server 10.5.5
  • Apple Mac OS X Server 10.5.6
  • Canonical Ubuntu 6.06 LTS
  • Canonical Ubuntu 7.10
  • Canonical Ubuntu 8.04 LTS
  • Canonical Ubuntu 8.10
  • Debian Debian Linux 4.0
  • Debian Debian Linux 5.0
  • Gentoo Linux
  • HP HP-UX B.11.11
  • HP HP-UX B.11.23
  • HP HP-UX B.11.31
  • HP System Management Homepage 6.0.0.95
  • HP System Management Homepage 6.0.0.96
  • MandrakeSoft Mandrake Linux 2008.0
  • MandrakeSoft Mandrake Linux 2008.0 X86_64
  • MandrakeSoft Mandrake Linux 2008.1 X86_64
  • MandrakeSoft Mandrake Linux 2008.1
  • MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 4.0
  • Mandriva Linux 2009.0
  • Mandriva Linux 2009.0 X86_64
  • PHP PHP 5.0.0 RC1
  • PHP PHP 5.0.0 Beta2
  • PHP PHP 5.0.0 Beta3
  • PHP PHP 5.0.0
  • PHP PHP 5.0.0 RC3
  • PHP PHP 5.0.0 RC2
  • PHP PHP 5.0.0 Beta1
  • PHP PHP 5.0.0 Beta4
  • PHP PHP 5.0.1
  • PHP PHP 5.0.2
  • PHP PHP 5.0.3
  • PHP PHP 5.0.4
  • PHP PHP 5.0.5
  • PHP PHP 5.1
  • PHP PHP 5.1.0
  • PHP PHP 5.1.1
  • PHP PHP 5.1.2
  • PHP PHP 5.1.3
  • PHP PHP 5.1.4
  • PHP PHP 5.1.5
  • PHP PHP 5.1.6
  • PHP PHP 5.2.0
  • PHP PHP 5.2.1
  • PHP PHP 5.2.2
  • PHP PHP 5.2.3
  • PHP PHP 5.2.4
  • PHP PHP 5.2.5
  • PHP PHP 5.2.6
  • RedHat Enterprise Linux 3 WS
  • RedHat Enterprise Linux 3 ES
  • RedHat Enterprise Linux 3 AS
  • RedHat Enterprise Linux 3 Desktop
  • RedHat Enterprise Linux 4 AS
  • RedHat Enterprise Linux 4 Desktop
  • RedHat Enterprise Linux 4 WS
  • RedHat Enterprise Linux 4 ES
  • RedHat Enterprise Linux 4.7.z AS
  • RedHat Enterprise Linux 5
  • RedHat Enterprise Linux 5 Client Workstation
  • RedHat Enterprise Linux 5.3.z EUS
  • RedHat Enterprise Linux Long Life 5.3
  • RedHat Red Hat Enterprise Linux 4.7.z ES
  • RedHat RHEL Application Stack 2
  • Turbolinux Appliance Server 3.0 x64
  • Turbolinux Appliance Server 3.0
  • Turbolinux Client 2008
  • Turbolinux Turbolinux 10 Server
  • Turbolinux Turbolinux 10 Server x64 Ed
  • Turbolinux Turbolinux 11 Server
  • Turbolinux Turbolinux 11 Server x64 Ed
  • Turbolinux Turbolinux 8 Server
  • Turbolinux Turbolinux Appliance Server 1.0 Hosting Ed
  • Turbolinux Turbolinux Appliance Server 1.0 Workgroup Ed
  • Turbolinux Turbolinux Appliance Server 2.0

Reported:

Aug 05, 2008

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page

* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

About IBM Security Systems

IBM Security Systems include an extensive portfolio of hardware, software solutions, professional and managed services offerings covering the spectrum of IT and business security risks: people and identity, data and information, application and process, network, server and endpoint and physical infrastructure, empowering clients to innovate and operate their businesses on the most secure infrastructure platforms. Through world-class solutions that address risk across the enterprise, IBM helps organizations build a strong security posture that helps reduce costs, improve service, and manage risk. IBM X-Force(R) Research and Development is one of the most renowned commercial security research and development groups in the world. For more information on how to address today's biggest risks, please visit us at ibm.com/security.