National Vulnerability Database

National Vulnerability Database

National Vulnerability

CVE-2007-4657 Detail


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.

Source:  MITRE      Last Modified:  09/04/2007

Quick Info

CVE Dictionary Entry:
Original release date:
Last revised:


CVSS Severity (version 2.0):
CVSS v2 Base Score:
7.5 HIGH
(AV:N/AC:L/Au:N/C:P/I:P/A:P) (legend)
Impact Subscore:
Exploitability Subscore:
CVSS Version 2 Metrics:
Access Vector:
Network exploitable
Access Complexity:
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

Hyperlink Resource Type Source Name Exploit; Patch External Source MISC External Source SLACKWARE SSA:2008-045-03 External Source DEBIAN DSA-1444 External Source DEBIAN DSA-1578 External Source GENTOO GLSA-200710-02 External Source CONFIRM Patch External Source CONFIRM External Source CONFIRM External Source CONFIRM External Source TRUSTIX 2007-0026 External Source UBUNTU USN-549-2 External Source UBUNTU USN-549-1 External Source VUPEN ADV-2007-3023 External Source VUPEN ADV-2008-0059 External Source XF php-strcspn-overflow(36388) External Source XF php-strcspn-strspn-unspecified(39399) External Source CONFIRM External Source CONFIRM External Source CONFIRM

Technical Details

Vulnerability Type (View All)

Change History 3 change records found - show changes