Mission and Overview
NVD is the U.S. government repository of standards based vulnerability management data. This data enables automation of vulnerability management, security measurement, and compliance (e.g. FISMA).
Resource Status
NVD contains:

Last updated: 5/31/2016 11:56:16 AM

CVE Publication rate: 19.23

Email List

NVD provides four mailing lists to the public. For information and subscription instructions please visit NVD Mailing Lists

Workload Index
Vulnerability Workload Index: 12.14
About Us
NVD is a product of the NIST Computer Security Division and is sponsored by the Department of Homeland Security's National Cyber Security Division. It supports the U.S. government multi-agency (OSD, DHS, NSA, DISA, and NIST) Information Security Automation Program. It is the U.S. government content repository for the Security Content Automation Protocol (SCAP).

National Cyber Awareness System

Vulnerability Summary for CVE-2007-4657

Original release date: 09/04/2007
Last revised: 03/07/2011


Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers to obtain sensitive information (memory contents) or cause a denial of service (thread crash) via a large len value to the (1) strspn or (2) strcspn function, which triggers an out-of-bounds read. NOTE: this affects different product versions than CVE-2007-3996.


CVSS Severity (version 2.0):
CVSS v2 Base Score: 7.5 HIGH
Impact Subscore: 6.4
Exploitability Subscore: 10.0
CVSS Version 2 Metrics:
Access Vector: Network exploitable
Access Complexity: Low
Authentication: Not required to exploit
Impact Type: Allows unauthorized disclosure of information; Allows unauthorized modification; Allows disruption of service

Vendor Statements (disclaimer)

Official Statement from Red Hat (09/05/2007)
The only effect of this bug is to cause the process to read from a random segment of memory, if a large "length" parameter is passed to the strspn/strcspn function, which is under the control of the script author. This bug has no security impact.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

External Source: CONFIRM
Name: http://www.php.net/releases/4_4_8.php
External Source: GENTOO
Name: GLSA-200710-02
External Source: VUPEN
Name: ADV-2008-0059
External Source: DEBIAN
Name: DSA-1444
External Source: DEBIAN
Name: DSA-1578
External Source: XF
Name: php-strcspn-overflow(36388)
External Source: CONFIRM
Name: http://www.php.net/releases/5_2_4.php
External Source: MISC
Name: http://secweb.se/en/advisories/php-strcspn-information-leak-vulnerability/
Type: Patch Information; Exploit
External Source: CONFIRM
Name: https://launchpad.net/bugs/173043
External Source: CONFIRM
Name: https://issues.rpath.com/browse/RPL-1693
External Source: CONFIRM
Name: http://www.php.net/ChangeLog-4.php
External Source: UBUNTU
Name: USN-549-1
External Source: VUPEN
Name: ADV-2007-3023
External Source: XF
Name: php-strcspn-strspn-unspecified(39399)
External Source: SLACKWARE
Name: SSA:2008-045-03
External Source: TRUSTIX
Name: 2007-0026
External Source: CONFIRM
Name: http://www.php.net/ChangeLog-5.php#5.2.4
Type: Patch Information
External Source: CONFIRM
Name: https://issues.rpath.com/browse/RPL-1702
External Source: UBUNTU
Name: USN-549-2

Vulnerable software and versions

+ Configuration 1
+ OR
cpe:/a:php:php:4.4.7 and previous versions
cpe:/a:php:php:5.2.3 and previous versions

* Denotes Vulnerable Software
Changes related to vulnerability configurations

Technical Details

Vulnerability Type (View All)