Back
CVE-2007-1885
Integer overflow in the str_replace function in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 allows context-dependent attackers to execute…
High7.5EPSS 4.3%
- Published
- Updated
- Reserved
- Assigned by
- mitre
Description
Integer overflow in the str_replace function in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 allows context-dependent attackers to execute arbitrary code via a single character search string in conjunction with a long replacement string, which overflows a 32 bit length counter. NOTE: this is probably the same issue as CVE-2007-0906.6.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 4.3% · top 8.8% of all CVEs (3 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
- n/a
Affected products
n/a
- affected n/a
References (10)
- ADV-2007-1991 (opens in a new tab)vdb-entryx_refsource_VUPENx_transferred
- 23233 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- SSRT071423 (opens in a new tab)vendor-advisoryx_refsource_HPx_transferred
- HPSBTU02232 (opens in a new tab)vendor-advisoryx_refsource_HPx_transferred
- http://www.php.net/releases/5_2_1.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- ADV-2007-2374 (opens in a new tab)vdb-entryx_refsource_VUPENx_transferred
- 25423 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 25850 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- http://www.php-security.org/MOPB/MOPB-39-2007.html (opens in a new tab)x_refsource_MISCx_transferred
- php-strreplace-bo(33767) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .