{"id":"CVE-2007-1885","published":"2007-04-06T01:00:00Z","modified":"2024-08-07T13:13:41Z","title":"Integer overflow in the str_replace function in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 allows context-dependent…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0431,"percentile":0.91384,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.vupen.com/english/advisories/2007/1991","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://www.securityfocus.com/bid/23233","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01056506","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://www.php.net/releases/5_2_1.php","tags":["x_refsource_CONFIRM"]},{"url":"http://www.vupen.com/english/advisories/2007/2374","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://secunia.com/advisories/25423","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/25850","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.php-security.org/MOPB/MOPB-39-2007.html","tags":["x_refsource_MISC"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33767","tags":["vdb-entry","x_refsource_XF"]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":18.28}]},"summary":{"text":"The flaw is an integer overflow in the str_replace function of PHP 4 (before 4.4.5) and PHP 5 (before 5.2.1), where a 32-bit length counter overflows. An attacker who can influence the arguments to str_replace can execute arbitrary code by supplying a single-character search string paired with a long replacement string, with the exact exploitable conditions depending on the application's context.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:18:22Z"},"euvd":{"id":"EUVD-2007-1879","exploited":false,"provenance":"source"},"lineage":{"parents":[{"from":"CVE-2007-0906","to":"CVE-2007-1885","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"NOTE: this is probably the same issue as CVE-2007-0906.6.","from":"CVE.org","in":"CVE-2007-1885"}]}]}}