Integer overflow in the str_replace function in PHP 4.4.5 and PHP 5.2.1 allows context-dependent attackers to have an unknown impact via a single character search string in conjunction with a single character replacement string, which causes an "off by one overflow."
Published Apr 6, 2007
6.8
MEDIUMCVSS 2.0
EPSS 1.69%
Description
Integer overflow in the str_replace function in PHP 4.4.5 and PHP 5.2.1 allows context-dependent attackers to have an unknown impact via a single character search string in conjunction with a single character replacement string, which causes an "off by one overflow."
Affected products
Remediation
Red Hat statement
We do not consider this flaw to be a security issue as it is only exploitable by the script author. No trust boundary is crossed. For more information please see: https://bugzilla.redhat.com/show_bug.cgi?id=mopb#c37
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:M/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 (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.69% (0.01690) | 76.23th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.69% (0.01690) | 74.01th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.56% (0.00563) | 66.41th | v4 (v2025.03.14) |
| Dec 12, 2024 | 2.74% (0.02737) | 90.91th | v3 (v2023.03.01) |
| Jun 1, 2024 | 2.74% (0.02737) | 90.54th | v3 (v2023.03.01) |
| Mar 17, 2024 | 2.11% (0.02108) | 88.89th | v3 (v2023.03.01) |
| Feb 7, 2024 | 1.63% (0.01634) | 86.22th | v3 (v2023.03.01) |
| Dec 31, 2023 | 1.55% (0.01554) | 85.77th | v3 (v2023.03.01) |
| Nov 23, 2023 | 1.17% (0.01170) | 83.39th | v3 (v2023.03.01) |
| Sep 7, 2023 | 1.18% (0.01176) | 83.29th | v3 (v2023.03.01) |
| Apr 11, 2023 | 1.04% (0.01044) | 81.73th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.27% (0.01267) | 83.51th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.54% (0.01537) | 74.48th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.54% (0.01537) | 72.41th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.54% (0.01537) | 51.33th | v2 (v2022.01.01) |
No CWE recorded.
References (11)
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01056506 vendor-advisoryx_refsource_HP
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137 vendor-advisoryx_refsource_HP
- http://secunia.com/advisories/25423 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/25850 third-party-advisoryx_refsource_SECUNIA
- http://www.php-security.org/MOPB/MOPB-39-2007.html x_refsource_MISCPatchVendor Advisory
- http://www.vupen.com/english/advisories/2007/1991 vdb-entryx_refsource_VUPEN
- http://www.vupen.com/english/advisories/2007/2374 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2007-1886 Vendor Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/33768 vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2007-1886
- https://www.cve.org/CVERecord?id=CVE-2007-1886
| Link | Providers | Tags |
|---|---|---|
| http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01056506 | vendor-advisoryx_refsource_HP | |
| http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137 | vendor-advisoryx_refsource_HP | |
| http://secunia.com/advisories/25423 | third-party-advisoryx_refsource_SECUNIA | |
| http://secunia.com/advisories/25850 | third-party-advisoryx_refsource_SECUNIA | |
| http://www.php-security.org/MOPB/MOPB-39-2007.html | x_refsource_MISCPatchVendor Advisory | |
| http://www.vupen.com/english/advisories/2007/1991 | vdb-entryx_refsource_VUPEN | |
| http://www.vupen.com/english/advisories/2007/2374 | vdb-entryx_refsource_VUPEN | |
| https://access.redhat.com/security/cve/CVE-2007-1886 | Vendor Advisory | |
| https://exchange.xforce.ibmcloud.com/vulnerabilities/33768 | vdb-entryx_refsource_XF | |
| https://nvd.nist.gov/vuln/detail/CVE-2007-1886 | ||
| https://www.cve.org/CVERecord?id=CVE-2007-1886 |
Change history (0)
No recorded changes yet.