CVE-2007-3998
MEDIUM 5.0CVSS 2.0The 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.
- Published
- 4 Sep 2007
- Last modified
- 16 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | php | phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.4.8 | 4.4.8 |
| NVD | php | phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:* |
>= 5.0.0, < 5.2.4 | 5.2.4 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:3.1:*:*:*:*:*:*:* |
= 3.1 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:* |
= 4.0 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:* |
= 6.06 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:6.10:*:*:*:*:*:*:* |
= 6.10 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* |
= 7.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:* |
= 7.10 |
References
- http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html · Third Party Advisory
- http://rhn.redhat.com/errata/RHSA-2007-0889.html · Third Party Advisory
- http://secunia.com/advisories/26642 · Third Party Advisory
- http://secunia.com/advisories/26822 · Third Party Advisory
- http://secunia.com/advisories/26838 · Third Party Advisory
- http://secunia.com/advisories/26871 · Third Party Advisory
- http://secunia.com/advisories/26895 · Third Party Advisory
- http://secunia.com/advisories/26930 · Third Party Advisory
- http://secunia.com/advisories/26967 · Third Party Advisory
- http://secunia.com/advisories/27102 · Third Party Advisory
- http://secunia.com/advisories/27377 · Third Party Advisory
- http://secunia.com/advisories/27545 · Third Party Advisory
- http://secunia.com/advisories/27864 · Third Party Advisory
- http://secunia.com/advisories/28249 · Third Party Advisory
- http://secunia.com/advisories/28658 · Third Party Advisory
- http://secunia.com/advisories/30288 · Third Party Advisory
- http://secweb.se/en/advisories/php-wordwrap-vulnerability/ · Third Party Advisory
- http://support.avaya.com/elmodocs2/security/ASA-2007-449.htm · Third Party Advisory
- http://www.debian.org/security/2008/dsa-1444 · Third Party Advisory
- http://www.debian.org/security/2008/dsa-1578 · Third Party Advisory
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml · Third Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:187 · Third Party Advisory
- http://www.php.net/ChangeLog-5.php#5.2.4 · Vendor Advisory
- http://www.php.net/releases/5_2_4.php · Vendor Advisory
- http://www.redhat.com/support/errata/RHSA-2007-0890.html · Third Party Advisory
- http://www.redhat.com/support/errata/RHSA-2007-0891.html · Third Party Advisory
- http://www.trustix.org/errata/2007/0026/ · Broken Link
- http://www.ubuntu.com/usn/usn-549-2 · Third Party Advisory
- http://www.vupen.com/english/advisories/2007/3023 · Permissions Required, Third Party Advisory
- https://issues.rpath.com/browse/RPL-1693 · Broken Link
- https://issues.rpath.com/browse/RPL-1702 · Broken Link
- https://launchpad.net/bugs/173043 · Third Party Advisory
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10603 · Third Party Advisory
- https://usn.ubuntu.com/549-1/ · Third Party Advisory
- https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00354.html · Third Party Advisory
History
- 25 Nov 2026 20:14 UTC · NVD: first stored (published 4 Sep 2007)