Vulnerability Alert

PHP _php_stream_scandir() Function Buffer Overflow Vulnerability

 
Threat Type:CWE-119: Buffer Errors
IntelliShield ID:26441
Version:7
First Published:2012 July 20 16:08 GMT
Last Published:2013 December 11 18:31 GMT
Port: Not available
CVE:CVE-2012-2688
BugTraq ID:54638
Urgency:Unlikely Use
Credibility:Confirmed
Severity:Mild Damage
CVSS Base:7.5 CVSS Calculator
CVSS Version 2.0
CVSS Temporal:5.5
 
Version Summary:Red Hat has released an additional security advisory and updated packages to address the PHP _php_stream_scandir() function buffer overflow vulnerability. CentOS has also released updated packages to address the vulnerability.
 
 
Description
PHP contains a vulnerability that could allow an unauthenticated, remote attacker to cause a denial of service (DoS) condition or execute arbitrary code on a targeted system.

The vulnerability is due to an unspecified error in the affected software. An unauthenticated, remote attacker could exploit this vulnerability by submitting crafted requests. Successful exploitation could trigger a buffer overflow condition that could allow the attacker to execute arbitrary code or cause a DoS condition on the system.

PHP has confirmed this vulnerability and released updated software.
 
Warning Indicators
The following PHP versions are vulnerable:
  • PHP versions 5.4.4 and prior
  • PHP versions 5.3.14 and prior
 
IntelliShield Analysis
To exploit this vulnerability, the attacker would need to send crafted requests to a targeted system. To achieve this objective, the attacker would need access to trusted, internal networks. This access requirement decreases the likelihood of a successful exploit.
 
Vendor Announcements
PHP has released a changelog at the following link: CVE-2012-2688

Apple has released a security advisory at the following link: HT5501

FreeBSD has released a VuXML document at the following link: php -- potential overflow in _php_stream_scandir

Red Hat has released an official CVE statement and security advisories for bug 828051 at the following links: CVE-2012-2688, RHSA-2013:0514, RHSA-2013:1307, and RHSA-2013-1814
 
Impact
An unauthenticated, remote attacker could exploit this vulnerability to execute arbitrary code or cause a DoS condition on a targeted system.
 
Technical Information
The vulnerability is due to a memory corruption error in the _php_stream_scandir() function used by the affected software.

An unauthenticated, remote attacker could exploit this vulnerability by submitting crafted requests. Successful exploitation could trigger a buffer overflow condition that could allow the attacker to execute arbitrary code or cause a DoS condition on the system.
 
Safeguards
Administrators are advised to apply the appropriate updates.

Administrators are advised to allow only trusted users to have network access.

Administrators are advised to monitor affected systems.
 
Patches/Software
PHP has released updated software at the following links:

PHP 5.4.5
PHP 5.3.15

Apple has released updated software at the following links:

Mac OS X and Mac OS X Server 10.6.8
Security Update 2012-004 (Snow Leopard)
Security Update 2012-004 Server (Snow Leopard)

Mac OS X and Mac OS X Server 10.7.5
OS X Lion Update 10.7.5 (Client)
OS X Lion Update 10.7.5 (Server)

Mac OS X and Mac OS X Server 10.8.2
OS X Mountain Lion Update v10.8.2

CentOS packages can be updated using the up2date or yum command.

FreeBSD has released ports collection updates at the following link: Ports Collection Index

Red Hat has released updated software for registered subscribers at the following link: Red Hat Network. Red Hat packages can be updated on Red Hat Enterprise Linux versions 5 and later using the yum tool.
 
Alert History
 

Version 6, October 1, 2013, 2:41 PM: Red Hat has released an additional security advisory and updated packages to address the PHP _php_stream_scandir() function buffer overflow vulnerability.

Version 5, May 15, 2013, 5:26 PM: CentOS has released updated packages to address PHP _php_stream_scandir() function buffer overflow vulnerability.

Version 4, February 22, 2013, 7:57 AM: Red Hat has released a security advisory and updated packages to address the PHP _php_stream_scandir() function buffer overflow vulnerability.

Version 3, September 26, 2012, 1:33 PM: Apple has released a security advisory and updated software to address the PHP _php_stream_scandir() function buffer overflow vulnerability.

Version 2, July 24, 2012, 1:22 PM: FreeBSD has released a VuXML document and updated ports collection to address the PHP _php_stream_scandir() function buffer overflow vulnerability.

Version 1, July 20, 2012, 12:08 PM: PHP contains a vulnerability that could allow an unauthenticated, remote attacker to cause a denial of service condition or execute arbitrary code. Updated software is available.


Product Sets
 
The security vulnerability applies to the following combinations of products.

Primary Products:
phpphp 5.3.0 Base | 5.3.1 Base | 5.3.2 Base | 5.3.3 Base | 5.3.4 Base | 5.3.5 Base | 5.3.6 Base | 5.3.7 Base | 5.3.8 Base | 5.3.9 Base | 5.3.10 Base | 5.3.11 Base | 5.3.12 Base | 5.3.13 Base | 5.3.14 Base | 5.4.0 Base | 5.4.1 Base | 5.4.4 Base | 5.4.2 Base | 5.4.3 Base

Associated Products:
AppleMac OS X 10.6.1 Intel, PPC | 10.6.2 Base | 10.6.3 Base | 10.6.4 Base | 10.6.5 Base | 10.6.6 Base | 10.6.7 Base | 10.6.8 Base | 10.7 Base | 10.7.1 Base | 10.7.2 Base | 10.7.3 Base | 10.7.4 Base | 10.8 Base, .1 | 10.8.1 Base
AppleMac OS X Server 10.6.1 Intel, PPC | 10.6.2 Base | 10.6.3 Base | 10.6.4 Base | 10.6.5 Base | 10.6.6 Base | 10.6.7 Base | 10.6.8 Base | 10.7 Base | 10.7.1 Base | 10.7.2 Base | 10.7.3 Base | 10.7.4 Base | 10.8.0 Base | 10.8.1 Base
CentOS ProjectCentOS 5 .0 i386, .0 x86_64, .1 i386, .1 x86_64, .2 i386, .2 x86_64, .3 i386, .3 x86_64, .4 i386, .4 x86_64, .5 i386, .5 x86_64 | 6 .0 i386, .0 x86_64, .1 i386, .1 x86_64, .2 i386, .2 x86_64
FreeBSD ProjectFreeBSD 6.3 Base | 6.4 Base | 7.0 Base | 7.1 Base | 7.2 Base | 7.3 Base | 7.4 Base | 8.0 Base | 8.1 Base | 8.2 Base | 8.3 Base | 9.0 Base
Red Hat, Inc.Red Hat Enterprise Linux 5 IA-32, IA-64, PPC, s390x, x86_64
Red Hat, Inc.Red Hat Enterprise Linux Desktop 6 IA-32, x86_64
Red Hat, Inc.Red Hat Enterprise Linux Desktop Workstation 5 IA-32, x86-64
Red Hat, Inc.Red Hat Enterprise Linux HPC Node 6 x86_64
Red Hat, Inc.Red Hat Enterprise Linux Server 6 IA-32, PPC 64, s390x, x86_64
Red Hat, Inc.Red Hat Enterprise Linux Workstation 6 IA-32, x86_64




Alerts and bulletins on the Cisco Security Intelligence Operations Portal are highlighted by analysts in the Cisco Threat Operations Center and represent a subset of the comprehensive content that is available through Cisco Security IntelliShield Alert Manager Service. This customizable threat and vulnerability alert service provides security staff with access to timely, accurate, and credible information about threats and vulnerabilities that may affect their environment.


LEGAL DISCLAIMER
The urgency and severity ratings of this alert are not tailored to individual users; users may value alerts differently based upon their network configurations and circumstances. THE ALERT, AND INFORMATION CONTAINED THEREIN, ARE PROVIDED ON AN "AS IS" BASIS AND DO NOT IMPLY ANY KIND OF GUARANTEE OR WARRANTY, INCLUDING THE WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. YOUR USE OF THE ALERT, AND INFORMATION CONTAINED THEREIN, OR MATERIALS LINKED FROM THE ALERT, IS AT YOUR OWN RISK. INFORMATION IN THIS ALERT AND ANY RELATED COMMUNICATIONS IS BASED ON OUR KNOWLEDGE AT THE TIME OF PUBLICATION AND IS SUBJECT TO CHANGE WITHOUT NOTICE. CISCO RESERVES THE RIGHT TO CHANGE OR UPDATE ALERTS AT ANY TIME.
Powered by  IntelliShield