CVE-2007-3998 json
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 a…
published 2007-09-04 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-3982
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- php php 4.4.8, 5.2.4
- php RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-gd RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-cli RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-dba RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-pdo RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-xml RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-imap RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-ldap RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
red hat advisories RHSA-2007:0917RHSA-2007:0891RHSA-2007:0890RHSA-2007:0889
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2007-3998 updated
php floating point exception inside wordwrap
-
Red Hat Application Stack v1 for Enterprise Linux AS (v.4) php 5.1.6-3.el4s1.8, php-gd 5.1.6-3.el4s1.8, php-cli 5.1.6-3.el4s1.8, php-dba 5.1.6-3.el4s1.8, php-pdo 5.1.6-3.el4s1.8, php-xml 5.1.6-3.el4s1.8, +12 more Red Hat Application Stack v1 for Enterprise Linux ES (v.4) php 5.1.6-3.el4s1.8, php-gd 5.1.6-3.el4s1.8, php-cli 5.1.6-3.el4s1.8, php-dba 5.1.6-3.el4s1.8, php-pdo 5.1.6-3.el4s1.8, php-xml 5.1.6-3.el4s1.8, +12 morefixed: vendor fix RHSA-2007:0891
-
Red Hat Desktop version 3 php 4.3.2-43.ent, php-imap 4.3.2-43.ent, php-ldap 4.3.2-43.ent, php-odbc 4.3.2-43.ent, php-mysql 4.3.2-43.ent, php-pgsql 4.3.2-43.entfixed: vendor fix RHSA-2007:0889
-
Red Hat Enterprise Linux (v. 5 server) php 5.1.6-15.el5, php-gd 5.1.6-15.el5, php-cli 5.1.6-15.el5, php-dba 5.1.6-15.el5, php-pdo 5.1.6-15.el5, php-xml 5.1.6-15.el5, +12 morefixed: vendor fix RHSA-2007:0890
-
Red Hat Enterprise Linux AS version 3 php 4.3.2-43.ent, php-imap 4.3.2-43.ent, php-ldap 4.3.2-43.ent, php-odbc 4.3.2-43.ent, php-mysql 4.3.2-43.ent, php-pgsql 4.3.2-43.entfixed: vendor fix RHSA-2007:0889
-
Red Hat Enterprise Linux AS version 4 php 4.3.9-3.22.9, php-gd 4.3.9-3.22.9, php-imap 4.3.9-3.22.9, php-ldap 4.3.9-3.22.9, php-odbc 4.3.9-3.22.9, php-pear 4.3.9-3.22.9, +7 more Red Hat Enterprise Linux Desktop version 4 php 4.3.9-3.22.9, php-gd 4.3.9-3.22.9, php-imap 4.3.9-3.22.9, php-ldap 4.3.9-3.22.9, php-odbc 4.3.9-3.22.9, php-pear 4.3.9-3.22.9, +7 more Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php 5.1.6-15.el5, php-gd 5.1.6-15.el5, php-cli 5.1.6-15.el5, php-dba 5.1.6-15.el5, php-pdo 5.1.6-15.el5, php-xml 5.1.6-15.el5, +12 morefixed: vendor fix RHSA-2007:0890
-
Red Hat Enterprise Linux ES version 3 php 4.3.2-43.ent, php-imap 4.3.2-43.ent, php-ldap 4.3.2-43.ent, php-odbc 4.3.2-43.ent, php-mysql 4.3.2-43.ent, php-pgsql 4.3.2-43.entfixed: vendor fix RHSA-2007:0889
-
Red Hat Enterprise Linux ES version 4 php 4.3.9-3.22.9, php-gd 4.3.9-3.22.9, php-imap 4.3.9-3.22.9, php-ldap 4.3.9-3.22.9, php-odbc 4.3.9-3.22.9, php-pear 4.3.9-3.22.9, +7 morefixed: vendor fix RHSA-2007:0890
-
Red Hat Enterprise Linux WS version 3 php 4.3.2-43.ent, php-imap 4.3.2-43.ent, php-ldap 4.3.2-43.ent, php-odbc 4.3.2-43.ent, php-mysql 4.3.2-43.ent, php-pgsql 4.3.2-43.entfixed: vendor fix RHSA-2007:0889
show 1 moreshow fewer
-
Red Hat Enterprise Linux WS version 4 php 4.3.9-3.22.9, php-gd 4.3.9-3.22.9, php-imap 4.3.9-3.22.9, php-ldap 4.3.9-3.22.9, php-odbc 4.3.9-3.22.9, php-pear 4.3.9-3.22.9, +7 morefixed: vendor fix RHSA-2007:0890
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.99% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
lists.opensuse.org
/opensuse-security-announce/2008-01/msg00006.html
vendor-advisory, third-party-advisory
-
redhat.com
/archives/fedora-package-announce/2007-September/msg00354.html
vendor-advisory, third-party-advisory
-
debian.org
/security/2008/dsa-1444
vendor-advisory, third-party-advisory
-
gentoo.org
/security/en/glsa/glsa-200710-02.xml
vendor-advisory, third-party-advisory
-
trustix.org
/errata/2007/0026/
vendor-advisory, broken-link
-
rhn.redhat.com
/errata/RHSA-2007-0889.html
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/549-1/
vendor-advisory, third-party-advisory
-
debian.org
/security/2008/dsa-1578
vendor-advisory, third-party-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2007:187
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/usn-549-2
vendor-advisory, third-party-advisory
-
redhat.com
/support/errata/RHSA-2007-0890.html
vendor-advisory, third-party-advisory
-
redhat.com
/support/errata/RHSA-2007-0891.html
vendor-advisory, third-party-advisory
-
php.net
/ChangeLog-5.php#5.2.4
vendor-advisory
-
php.net
/releases/5_2_4.php
vendor-advisory
-
secunia.com
/advisories/30288
third-party-advisory
-
secunia.com
/advisories/26822
third-party-advisory
-
launchpad.net
/bugs/173043
third-party-advisory
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10603
vdb-entry, signature, third-party-advisory
-
secunia.com
/advisories/28658
third-party-advisory
-
secunia.com
/advisories/26967
third-party-advisory
-
secunia.com
/advisories/27864
third-party-advisory
-
secunia.com
/advisories/26930
third-party-advisory
-
issues.rpath.com
/browse/RPL-1693
broken-link
-
secunia.com
/advisories/28249
third-party-advisory
-
issues.rpath.com
/browse/RPL-1702
broken-link
-
secunia.com
/advisories/27545
third-party-advisory
-
support.avaya.com
/elmodocs2/security/ASA-2007-449.htm
third-party-advisory
-
secunia.com
/advisories/26838
third-party-advisory
-
secweb.se
/en/advisories/php-wordwrap-vulnerability/
third-party-advisory
-
secunia.com
/advisories/27377
third-party-advisory
-
secunia.com
/advisories/27102
third-party-advisory
-
vupen.com
/english/advisories/2007/3023
vdb-entry, permissions-required, third-party-advisory
-
secunia.com
/advisories/26895
third-party-advisory
-
secunia.com
/advisories/26871
third-party-advisory
-
secunia.com
/advisories/26642
third-party-advisory
Sources
- CVE List CVE-2007-3998
- NVD CVE-2007-3998
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.