First published: Fri Apr 06 2007(Updated: )
Integer overflow in the str_replace function in PHP 4.4.5 and PHP 5.2.1 allows context-dependent attackers to have an unknown impact via a single character search string in conjunction with a single character replacement string, which causes an "off by one overflow."
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
PHP | =4.4.5 | |
PHP | =5.2.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2007-1886 is considered a medium severity vulnerability due to the potential for integer overflow leading to possible unauthorized actions.
To fix CVE-2007-1886, you should upgrade PHP to version 4.4.6 or later, or to version 5.2.2 or later.
CVE-2007-1886 specifically affects PHP versions 4.4.5 and 5.2.1.
CVE-2007-1886 can lead to unexpected behaviors or vulnerabilities in applications relying on the str_replace function, potentially allowing context-dependent attackers to exploit the overflow.
CVE-2007-1886 is somewhat common due to the continued usage of the affected PHP versions in legacy applications.