Products & Services
Support How to Buy

For Home

Cisco Home Products Store
Products for everyone

Flip Video Store
Meet the Flip Family:
Life now has a play button

All Ordering Options

Training & Events Partners

Find a Partner

Cisco Partners help you find the right solution for your Business

Become a Partner

Enhance your company's value-add, expertise and opportunities

Small Business Partners

Log in to get sales resources.

Already a Partner?

Log in for resources.

Register as a New User

Visit Partner Central or My Cisco Workspace

Guest

Vulnerability Alert

PHP _php_stream_scandir() Function Buffer Overflow Vulnerability

 
Threat Type:CWE-119: Buffer Errors
IntelliShield ID:26441
Version:5
First Published:2012 July 24 17:22 GMT
Last Published:2013 May 15 17:26 GMT
Vector:Network
Authentication:None
Exploit:Unproven
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
CVSS Temporal:5.5
 
Version Summary:CentOS has released updated packages to address PHP _php_stream_scandir() function buffer overflow 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 a security advisory for bug 828051 at the following links: CVE-2012-2688 and RHSA-2013:0514
 
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.

Technical information is not available.
 
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 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:
phpphp5.3.0 Base | 5.3.1 Base | 5.3.10 Base | 5.3.11 Base | 5.3.12 Base | 5.3.13 Base | 5.3.14 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.4.0 Base | 5.4.1 Base | 5.4.2 Base | 5.4.3 Base | 5.4.4 Base

Associated Products:
AppleMac OS X10.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 .1, Base | 10.8.1 Base
AppleMac OS X Server10.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 ProjectCentOS6 .0 i386, .0 x86_64, .1 i386, .1 x86_64, .2 i386, .2 x86_64
FreeBSD ProjectFreeBSD6.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 Desktop6 IA-32, x86_64
Red Hat, Inc.Red Hat Enterprise Linux HPC Node6 x86_64
Red Hat, Inc.Red Hat Enterprise Linux Server6 IA-32, PPC 64, s390x, x86_64
Red Hat, Inc.Red Hat Enterprise Linux Workstation6 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. Cisco is pleased to offer a free trial of the service. To register for full access, please visit the IntelliShield trial registration page.


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

Feedback

Which alert section is most useful?

  • Affected Products/Versions
  • Patches/Software Updates
  • Description
  • Safeguards
  • Technical Information/Analysis

Do you use the CVSS scoring provided in alerts? Why?

What additional information should IntelliShield alerts include?