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.
Remediation
References
Related Vulnerabilities
Apache Traffic Server Integer Overflow or Wraparound Vulnerability (CVE-2018-9481)
MediaWiki CVE-2023-22909 Vulnerability (CVE-2023-22909)
Moodle Permissions, Privileges, and Access Controls Vulnerability (CVE-2012-2359)
WordPress Plugin Japanized For WooCommerce Cross-Site Scripting (2.5.4)
WordPress Plugin Funky Penguin WP-PHPList 'unsubscribeemail' Parameter Cross-Site Scripting (2.10.2)