Input validation error in PHP - CVE-2007-1886

 

Input validation error in PHP - CVE-2007-1886

Published: July 29, 2017 / Updated: June 8, 2025


Vulnerability identifier: #VU110410
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2007-1886
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

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."


Affected software

PHP

How to mitigate CVE-2007-1886

Install update from vendor's website.

PHP - addressed in versions 4.4.6, 5.2.2

External References

Related Security Bulletins