Name | CVE-2007-3998 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-1444-1, DSA-1578-1, DTSA-61-1 |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
php4 | source | etch | 6:4.4.4-8+etch6 | DSA-1578-1 | ||
php4 | source | (unstable) | (unfixed) | low | ||
php5 | source | etch | 5.2.0-8+etch9 | DSA-1444-1 | ||
php5 | source | lenny | 5.2.3-1+lenny1 | DTSA-61-1 | ||
php5 | source | (unstable) | 5.2.4-1 | low |
this applies to php4 as well
i think it is medium since it can be easily used to DoS on shared hosting systems
a diff between 5.2.3 (debian) and 5.2.4 (upstream) of ext/standard/string.c
so maybe this is already fixed in 5.2.3, not sure
fixed in php5/etch svn
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/string.c?r1=1.445.2.14.2.63&r2=1.445.2.14.2.64