CVE-2007-1886: Integer Overflow

Published Apr 6, 2007
·
Updated

Integer overflow in the strreplace 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."

Affected Software

2 affected components
PHP PHP=4.4.5
PHP PHP=5.2.1

Event History

Apr 6, 2007
CVE Published
01:19 AM
CVE Published
via MITRE·05:00 AM
Data Sourced
via MITRE·05:00 AM
Description

Frequently Asked Questions

1

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.

2

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.

3

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

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

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203