CVE-2007-1885 json
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 arb…
published 2007-04-06 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-1879
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.3%
- EPSS 4.3% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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.
Exploit prediction
4.31% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- php-security.org http://www.php-security.org/MOPB/MOPB-39-2007.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Technology feeds
References
-
php-security.org
/MOPB/MOPB-39-2007.html
exploit, vendor-advisory
-
h20000.www2.hp.com
/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01056506
vendor-advisory
-
h20000.www2.hp.com
/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137
vendor-advisory
-
vupen.com
/english/advisories/2007/1991
vdb-entry
-
securityfocus.com
/bid/23233
vdb-entry
- php.net /releases/5_2_1.php
-
vupen.com
/english/advisories/2007/2374
vdb-entry
-
secunia.com
/advisories/25423
third-party-advisory
-
secunia.com
/advisories/25850
third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/33767
vdb-entry
Sources
- CVE List CVE-2007-1885
- NVD CVE-2007-1885
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.