PHP HTML entity encoder htmlentities() and htmlspecialchars() buffer overflow

php-htmlentities-bo (29971) The risk level is classified as HighHigh Risk

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:

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

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 Internet Security Systems

IBM Internet Security Systems is a trusted security advisor to thousands of the world's leading businesses and governments, helping to provide pre-emptive protection for networks, desktops and servers. The IBM Proventia? integrated security platform is designed to automatically protect against both known and unknown threats, helping to keep networks up and running and shield customers from online attacks before they impact business assets. IBM Internet Security Systems products and services are based on the proactive security intelligence of its X-Force? research and development team ? an unequivocal world authority in vulnerability and threat research. The IBM Internet Security Systems product line is also complemented by comprehensive Managed Security Services and Professional Security Services. For more information, visit the IBM Internet Security Systems Web site at www.iss.net or call 800-776-2362.