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.
Severity
High 7.5
Published
6 Apr 2007
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Exploit chance
4.3% in the next 30 daysHigher than 91% of CVEs. EPSS by FIRST, 12 Nov 2026