php security update (RHSA-2007-081 RHSA-2007-0088)

Original Release Date: March 26, 2007
Last Revised: January 8, 2008
Number: ASA-2007-136
Risk Level: Low
Advisory Version: 2.0
Advisory Status: Final

1. Overview:

PHP is a general purpose scripting language widely used in World Wide Web (WWW) pages and applications.

Two buffer overflows have been reported in the PHP session extension; the str_replace() function; and the imap_mail_compose() function. An attacker could pass a very long string to the str_replace() function and create an integer overflow in memory allocation. An attacker could use a script to create a new MIME message from an untrusted source with the imap_mail_compose() to cause a heap overflow. An attacker that exploited either of these vulnerabilities could possibly execute arbitrary code as the 'apache' user. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2007-0906 to these issues.

An issue has been discovered where unserializing untrusted data on 64-bit platforms, the zend_hash_init() could potentially be forced into an infinite loop, causing consumption of CPU resources until the script timeout alarm halted the script. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2007-0988 to this issue.

An issue has been identified in WDDX which could expose a random portion of heap memory. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2007-0908 to this issue.

An issue has been identified with the odbc_result_all() function. An attacker with control of the database table contents could use a specially crafted string to execute arbitrary code. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2007-0909 to this issue.

A one byte memory read always occurs before the beginning of a buffer. This could be triggered, for example, by any use of the header() function in a script. However it is unlikely that this would have any effect. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2007-0907 to this issue.

Several flaws in PHP could allow attackers to "clobber" certain super-global variables via unspecified vectors. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2007-0910 to this issue.

More information about these vulnerabilities can be found in the security advisories issued by RedHat Linux:

2. Avaya System Products with php installed:

Product: Affected Version(s): Risk Level: Actions:
Avaya Communication Manager CM 2.x, 4.0 None Avaya Communication Manager uses versions of PHP which are not vulnerable to these issues.
Avaya Messaging Storage Server MSS 3.0 Low Upgrade to MSS 3.1 to resolve this issue.
Avaya CCS/SES All Low Upgrade to SES 5.0 to resolve this issue.
Avaya AES AES 4.0 None Avaya AES uses versions of PHP which are not vulnerable to these issues.

Recommended Actions:
For all system products which use vulnerable versions of php, Avaya recommends that customers restrict local and network access to the server. This restriction should be enforced through the use of physical security, firewalls, ACLs, VPNs, and other generally-accepted networking practices until such time as an update becomes available and can be installed.


3. Avaya Software-Only Products:

Avaya software-only products operate on general-purpose operating systems. Occasionally vulnerabilities may be discovered in the underlying operating system or applications that come with the operating system. These vulnerabilities often do not impact the software-only product directly but may threaten the integrity of the underlying platform.

In the case of this advisory Avaya software-only products are not affected by the vulnerability directly but the underlying Linux platform may be. Customers should determine on which Linux operating system the product was installed and then follow that vendor's guidance.

4. Software-Only Products:

Product: Affected Version(s): Risk Level: Actions:
CVLAN All None Depending on the Operating System provided by customers, the affected package may be installed on the underlying Operating System supporting the CVLAN application. The CVLAN application does not require the software described in this advisory.
Avaya Integrated Management Suite(IMS) All None Depending on the Operating System provided by customers, the affected package may be installed on the underlying Operating System supporting the IMS application. The IMS application does not require the software described in this advisory.

Recommended Actions:
Avaya recommends that customers follow recommended actions supplied by RedHat Linux or remove the affected package.

5. Additional Information:

Additional information may also be available via the Avaya support website and through your Avaya account representative. Please contact your Avaya product support representative, or dial 1-800-242-2121, with any questions.

6. Disclaimer:

ALL INFORMATION IS BELIEVED TO BE CORRECT AT THE TIME OF PUBLICATION AND IS PROVIDED "AS IS". AVAYA INC., ON BEHALF ITSELF AND ITS SUBSIDIARIES AND AFFILIATES (HEREINAFTER COLLECTIVELY REFERRED TO AS "AVAYA"), DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND FURTHERMORE, AVAYA MAKES NO REPRESENTATIONS OR WARRANTIES THAT THE STEPS RECOMMENDED WILL ELIMINATE SECURITY OR VIRUS THREATS TO CUSTOMERS' SYSTEMS. IN NO EVENT SHALL AVAYA BE LIABLE FOR ANY DAMAGES WHATSOEVER ARISING OUT OF OR IN CONNECTION WITH THE INFORMATION OR RECOMMENDED ACTIONS PROVIDED HEREIN, INCLUDING DIRECT, INDIRECT, CONSEQUENTIAL DAMAGES, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF AVAYA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

THE INFORMATION PROVIDED HERE DOES NOT AFFECT THE SUPPORT AGREEMENTS IN PLACE FOR AVAYA PRODUCTS. SUPPORT FOR AVAYA PRODUCTS CONTINUES TO BE EXECUTED AS PER EXISTING AGREEMENTS WITH AVAYA.

7. Revision History:

V 1.0 - March 26, 2007 - Initial Statement issued.
V 2.0 - January 8, 2008 - Updated actions for several products and changed Advisory Status to "Final".

Send information regarding any discovered security problems with Avaya products to either the contact noted in the product's documentation or securityalerts@avaya.com.

© 2007 Avaya Inc. All Rights Reserved. All trademarks identified by the ® or ™ are registered trademarks or trademarks, respectively, of Avaya Inc. All other trademarks are the property of their respective owners.