CWE
NVD-CWE-Other 190
Advisory Published
Updated

CVE-2007-1886: Integer Overflow

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 SoftwareAffected VersionHow to fix
PHP=4.4.5
PHP=5.2.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2007-1886?

    CVE-2007-1886 is considered a medium severity vulnerability due to the potential for integer overflow leading to possible unauthorized actions.

  • How do I fix CVE-2007-1886?

    To fix CVE-2007-1886, you should upgrade PHP to version 4.4.6 or later, or to version 5.2.2 or later.

  • What versions of PHP are affected by CVE-2007-1886?

    CVE-2007-1886 specifically affects PHP versions 4.4.5 and 5.2.1.

  • What impact does CVE-2007-1886 have on my application?

    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.

  • Is CVE-2007-1886 a common vulnerability?

    CVE-2007-1886 is somewhat common due to the continued usage of the affected PHP versions in legacy applications.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203