CVE-2007-1885: PHP
High severity, CVSS 7.5. EPSS: 4.2% chance of exploitation in the next 30 days.
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.
Affected products
- PHP PHP: version 4.0.0 only; version 4.0.1 only; version 4.0.2 only; version 4.0.3 only; version 4.0.4 only; version 4.0.5 only; …
Published 2007-04-06. Last modified 2026-06-16.