CVE-2007-3998: Input Validation
Description of problem: http://www.secweb.se/en/advisories/php-wordwrap-vulnerability/ http://www.php.net/releases/524.php
Due to an incorrect use of breakcharlen it is possible to force wordwrap to devide by zero or to enter an infinite loop.
Other sources
The wordwrap function in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, does not properly use the breakcharlen variable, which allows remote attackers to cause a denial of service (divide-by-zero error and application crash, or infinite loop) via certain arguments, as demonstrated by a 'chr(0), 0, ""' argument set.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
PHP 4to a version that resolves this vulnerability.Fixed in 4.4.8 - Upgrade
Upgrade
PHP 5to a version that resolves this vulnerability.Fixed in 5.2.4
Event History
Frequently Asked Questions
What is the severity of CVE-2007-3998?
The severity of CVE-2007-3998 is considered moderate due to its potential to cause denial of service.
How do I fix CVE-2007-3998?
To fix CVE-2007-3998, upgrade PHP to version 4.4.8 or later, or PHP 5.2.4 or later.
What versions of PHP are affected by CVE-2007-3998?
CVE-2007-3998 affects PHP versions before 4.4.8 and 5.2.4.
Can CVE-2007-3998 be exploited remotely?
Yes, CVE-2007-3998 can be exploited remotely to cause denial of service.
What type of vulnerabilities does CVE-2007-3998 represent?
CVE-2007-3998 represents a denial of service vulnerability related to improper argument handling in the wordwrap function.