PHP HTML entity encoder htmlentities() and htmlspecialchars() buffer overflow
| php-htmlentities-bo (29971) |
Description:
PHP is vulnerable to a buffer overflow, caused by improper bounds checking by the htmlentities() and htmlspecialchars() HTML entity encoder functions. By sending a specially-crafted request containing embedded Greek theta UTF-8 characters to a PHP-based Web application that utilizes the vulnerable functions, a remote attacker could overflow a buffer and execute arbitrary code on the system or cause the application to crash.
*CVSS:
| Base Score: | 10 |
| Access Vector: | Remote |
| Access Complexity: | Low |
| Authentication: | Not Required |
| Confidentiality Impact: | Complete |
| Integrity Impact: | Complete |
| Availability Impact: | Complete |
| Temporal Score: | 7.4 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
Upgrade to the latest version of PHP (5.2.0 or later), available from The PHP Group Web site. See References.
For Apple Mac OS X:
Apply Apple Security Update 2006-007, available from the Apple Web site. See References.
For the Cisco Network Analysis Module:
Refer to cisco-sr-20070425-http for patch, upgrade, or suggested workaround information. See References.
For Ubuntu Linux:
Refer to USN-375-1 for patch, upgrade, or suggested workaround information. See References.
For Debian GNU/Linux:
Refer to DSA-1206-1 for patch, upgrade, or suggested workaround information. See References.
For Turbolinux:
Refer to Turbolinux Security Advisory TLSA-2006-38 for patch, upgrade, or suggested workaround information. See References.
For Symantec Veritas NetBackup PureDisk:
Refer to SYM06-023 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux (PHP):
Refer to GLSA 200703-21 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
References:
- Apple Security Update 2006-007: About the security content of Security Update 2006-007.
- cisco-sr-20070425-http: Cisco Security Response: PHP HTML Entity Encoder Heap Overflow Vulnerability in Multiple Web-based Management Interfaces.
- Full-Disclosure Mailing List, Thu Nov 02 2006 - 16:12:41 CST: Advisory 13/2006: PHP HTML Entity Encoder Heap Overflow Vulnerability.
- SYM06-023: Symantec NetBackup PureDisk: PHP update to Address Reported Security Vulnerability.
- The PHP Group Web site: PHP: Downloads.
- ASA-2006-245: php security update (RHSA-2006-0730)
- BID-20879: PHP HTMLEntities HTMLSpecialChars Buffer Overflow Vulnerabilities
- CVE-2006-5465: Buffer overflow in PHP before 5.2.0 allows remote attackers to execute arbitrary code via crafted UTF-8 inputs to the (1) htmlentities or (2) htmlspecialchars functions.
- DSA-1206: php4 -- several vulnerabilities
- GLSA-200703-21: PHP: Multiple vulnerabilities
- MDKSA-2006:196: Updated php packages to address buffer overflow issue
- MDVSA-2010:007: php
- OpenPKG-SA-2006.028: PHP
- RHSA-2006-0730: php security update
- RHSA-2006-0731: Important: php security update
- RHSA-2006-0736: Important: php security update for Stronghold
- SA22653: PHP "htmlentities()" and "htmlspecialchars()" Buffer Overflows
- SA22779: Avaya Products PHP Buffer Overflows
- SA23139: Symantec NetBackup PureDisk PHP Buffer Overflow
- SA23155: Mac OS X Security Update Fixes Multiple Vulnerabilities
- SA25047: Cisco Products PHP "htmlentities()" and "htmlspecialchars()" Buffer Overflows
- SECTRACK ID: 1017152: PHP Buffer Overflows in htmlspecialchars() and htmlentities() May Let Remote Users Execute Arbitrary Code
- SECTRACK ID: 1017296: Symantec NetBackup PureDisk PHP Buffer Overflow May Let Remote Users Execute Arbitrary Code
- SUSE-SA:2006:067: php security problems
Platforms Affected:
- Apple Mac OS X 10.3.9
- Apple Mac OS X 10.4.8
- Apple Mac OS X Server 10.3.9
- Apple Mac OS X Server 10.4.8
- Canonical Ubuntu 5.10
- Canonical Ubuntu 6.06 LTS
- Canonical Ubuntu 6.10
- Cisco Network Analysis Module
- Debian Debian Linux 3.1
- Gentoo Linux
- MandrakeSoft Mandrake Linux 2006 X86_64
- MandrakeSoft Mandrake Linux 2006
- MandrakeSoft Mandrake Linux 2007 X86_64
- MandrakeSoft Mandrake Linux 2007
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 4.0
- MandrakeSoft Mandrake Multi Network Firewall 2.0
- Novell Linux Desktop 9
- Novell Linux POS 9
- Novell Open Enterprise Server
- Novell Open Enterprise Server
- Novell SLE SDK 10
- Novell UnitedLinux 1.0
- OpenPKG OpenPKG 2-STABLE
- OpenPKG OpenPKG CURRENT
- OpenPKG OpenPKG Enterprise E1.0-SOLID
- PHP PHP 5.0.0
- RedHat Application Stack v1 for EL AS 4
- RedHat Application Stack v1 for EL ES 4
- RedHat Enterprise Linux 2.1 AS
- RedHat Enterprise Linux 2.1 WS
- RedHat Enterprise Linux 2.1 ES
- RedHat Enterprise Linux 3 Desktop
- RedHat Enterprise Linux 3 ES
- RedHat Enterprise Linux 3 AS
- RedHat Enterprise Linux 3 WS
- RedHat Enterprise Linux 4 AS
- RedHat Enterprise Linux 4 WS
- RedHat Enterprise Linux 4 ES
- RedHat Enterprise Linux 4 Desktop
- RedHat Linux Advanced Workstation 2.1 Itanium
- RedHat Stronghold
- SuSE Linux Enterprise Server 8
- SUSE SuSE Linux 10.0
- SUSE SuSE Linux 10.1
- SUSE SuSE Linux 9.3
- SuSE SuSE Linux OpenExchange Server 4
- SuSE SuSE Linux Retail Solution 8
- SuSE SuSE Linux School Server
- SuSE SuSE Linux Standard Server 8
- SuSE SuSE SLES 10
- SuSE SuSE SLES 9
- Symantec VERITAS NetBackup 6.0
- Turbolinux Turbolinux 10 Desktop
- Turbolinux Turbolinux 10 F...
- Turbolinux Turbolinux 10 Server
- Turbolinux Turbolinux 10 Server x64 Ed
- Turbolinux Turbolinux 8 Server
- Turbolinux Turbolinux Home
- Turbolinux Turbolinux Multimedia
- Turbolinux Turbolinux Personal
- Turbolinux Turbolinux
- Turbolinux Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux Turbolinux Appliance Server 1.0 Workgroup Ed
- Turbolinux Turbolinux Appliance Server 2.0
Reported:
Nov 02, 2006
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
* 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.
