php integer overflow in strspn/strcspn
Published Sep 4, 2007
7.5
HIGHCVSS 2.0
EPSS 2.99%
Description
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.
Affected products
No data.
Configuration 2
- 3.1
- 4.0
Configuration 3
- 6.06
- 6.10
- 7.04
- 7.10
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
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.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.99% (0.02994) | 86.87th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.99% (0.02994) | 85.55th | v5 (v2026.06.15) |
| Mar 17, 2025 | 2.63% (0.02631) | 84.68th | v4 (v2025.03.14) |
| Dec 17, 2024 | 2.41% (0.02407) | 89.61th | v3 (v2023.03.01) |
| Dec 12, 2024 | 0.92% (0.00919) | 83.58th | v3 (v2023.03.01) |
| May 31, 2024 | 0.97% (0.00971) | 83.36th | v3 (v2023.03.01) |
| Apr 23, 2024 | 1.46% (0.01460) | 86.53th | v3 (v2023.03.01) |
| Feb 6, 2024 | 1.63% (0.01630) | 86.21th | v3 (v2023.03.01) |
| Sep 10, 2023 | 1.92% (0.01915) | 87.13th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.77% (0.01772) | 86.06th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.36% (0.04358) | 88.02th | v2 (v2022.01.01) |
| Apr 1, 2022 | 4.36% (0.04358) | 86.83th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.36% (0.04358) | 70.59th | v2 (v2022.01.01) |
References (33)
- http://secunia.com/advisories/26642 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/26822 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/26838 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/27102 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/27377 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/27864 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/28249 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/28318 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/28936 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/30288 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secweb.se/en/advisories/php-strcspn-information-leak-vulnerability/ x_refsource_MISCThird Party Advisory
- http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.335136 vendor-advisoryx_refsource_SLACKWAREMailing ListThird Party Advisory
- http://www.debian.org/security/2008/dsa-1444 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.debian.org/security/2008/dsa-1578 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml vendor-advisoryx_refsource_GENTOOThird Party Advisory
- http://www.php.net/ChangeLog-4.php x_refsource_CONFIRMVendor Advisory
- http://www.php.net/ChangeLog-5.php#5.2.4 x_refsource_CONFIRMPatchVendor Advisory
- http://www.php.net/releases/4_4_8.php x_refsource_CONFIRMVendor Advisory
- http://www.php.net/releases/5_2_4.php x_refsource_CONFIRMVendor Advisory
- http://www.trustix.org/errata/2007/0026/ vendor-advisoryx_refsource_TRUSTIXBroken Link
- http://www.ubuntu.com/usn/usn-549-2 vendor-advisoryx_refsource_UBUNTUBroken Link
- http://www.vupen.com/english/advisories/2007/3023 vdb-entryx_refsource_VUPENThird Party Advisory
- http://www.vupen.com/english/advisories/2008/0059 vdb-entryx_refsource_VUPENThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2007-4657 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=278061 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/36388 vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry
- https://exchange.xforce.ibmcloud.com/vulnerabilities/39399 vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry
- https://issues.rpath.com/browse/RPL-1693 x_refsource_CONFIRMBroken Link
- https://issues.rpath.com/browse/RPL-1702 x_refsource_CONFIRMBroken Link
- https://launchpad.net/bugs/173043 x_refsource_CONFIRMThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2007-4657
- https://usn.ubuntu.com/549-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2007-4657
| Link | Providers | Tags |
|---|---|---|
| http://secunia.com/advisories/26642 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/26822 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/26838 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/27102 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/27377 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/27864 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/28249 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/28318 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/28936 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/30288 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secweb.se/en/advisories/php-strcspn-information-leak-vulnerability/ | x_refsource_MISCThird Party Advisory | |
| http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.335136 | vendor-advisoryx_refsource_SLACKWAREMailing ListThird Party Advisory | |
| http://www.debian.org/security/2008/dsa-1444 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| http://www.debian.org/security/2008/dsa-1578 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml | vendor-advisoryx_refsource_GENTOOThird Party Advisory | |
| http://www.php.net/ChangeLog-4.php | x_refsource_CONFIRMVendor Advisory | |
| http://www.php.net/ChangeLog-5.php#5.2.4 | x_refsource_CONFIRMPatchVendor Advisory | |
| http://www.php.net/releases/4_4_8.php | x_refsource_CONFIRMVendor Advisory | |
| http://www.php.net/releases/5_2_4.php | x_refsource_CONFIRMVendor Advisory | |
| http://www.trustix.org/errata/2007/0026/ | vendor-advisoryx_refsource_TRUSTIXBroken Link | |
| http://www.ubuntu.com/usn/usn-549-2 | vendor-advisoryx_refsource_UBUNTUBroken Link | |
| http://www.vupen.com/english/advisories/2007/3023 | vdb-entryx_refsource_VUPENThird Party Advisory | |
| http://www.vupen.com/english/advisories/2008/0059 | vdb-entryx_refsource_VUPENThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2007-4657 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=278061 | Issue Tracking | |
| https://exchange.xforce.ibmcloud.com/vulnerabilities/36388 | vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry | |
| https://exchange.xforce.ibmcloud.com/vulnerabilities/39399 | vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry | |
| https://issues.rpath.com/browse/RPL-1693 | x_refsource_CONFIRMBroken Link | |
| https://issues.rpath.com/browse/RPL-1702 | x_refsource_CONFIRMBroken Link | |
| https://launchpad.net/bugs/173043 | x_refsource_CONFIRMThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2007-4657 | ||
| https://usn.ubuntu.com/549-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2007-4657 |
Change history (0)
No recorded changes yet.