php floating point exception inside wordwrap
Published Sep 4, 2007
5.0
MEDIUMCVSS 2.0
EPSS 2.99%
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.
Affected products
No data.
Configuration 2
- 3.1
- 4.0
Configuration 3
- 6.06
- 6.10
- 7.04
- 7.10
No data.
Red Hat Enterprise Linux 3
php-0:4.3.2-43.ent
Fixed · RHSA-2007:0889
Red Hat Enterprise Linux 4
php-0:4.3.9-3.22.9
Fixed · RHSA-2007:0890
Red Hat Enterprise Linux 5
php-0:5.1.6-15.el5
Fixed · RHSA-2007:0890
Red Hat Web Application Stack for RHEL 4
php-0:5.1.6-3.el4s1.8
Fixed · RHSA-2007:0891
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 3 | php-0:4.3.2-43.ent | Fixed | RHSA-2007:0889 |
| Red Hat Enterprise Linux 4 | php-0:4.3.9-3.22.9 | Fixed | RHSA-2007:0890 |
| Red Hat Enterprise Linux 5 | php-0:5.1.6-15.el5 | Fixed | RHSA-2007:0890 |
| Red Hat Web Application Stack for RHEL 4 | php-0:5.1.6-3.el4s1.8 | Fixed | RHSA-2007:0891 |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of PHP as shipped with Red Hat Enterprise Linux 2.1.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (24 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.99% (0.02993) | 86.86th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.99% (0.02993) | 85.54th | v5 (v2026.06.15) |
| Jan 10, 2026 | 5.89% (0.05887) | 90.30th | v4 (v2025.03.14) |
| Dec 28, 2025 | 7.21% (0.07212) | 91.30th | v4 (v2025.03.14) |
| Dec 27, 2025 | 5.80% (0.05797) | 90.25th | v4 (v2025.03.14) |
| Oct 28, 2025 | 7.29% (0.07293) | 91.24th | v4 (v2025.03.14) |
| Oct 27, 2025 | 5.86% (0.05864) | 90.18th | v4 (v2025.03.14) |
| Oct 1, 2025 | 7.29% (0.07293) | 91.33th | v4 (v2025.03.14) |
| Jul 30, 2025 | 5.19% (0.05186) | 89.52th | v4 (v2025.03.14) |
| Mar 30, 2025 | 6.46% (0.06465) | 90.15th | v4 (v2025.03.14) |
| Mar 29, 2025 | 11.15% (0.11148) | 89.10th | v4 (v2025.03.14) |
| Mar 19, 2025 | 6.46% (0.06465) | 89.89th | v4 (v2025.03.14) |
| Mar 17, 2025 | 4.74% (0.04736) | 88.68th | v4 (v2025.03.14) |
| Dec 17, 2024 | 1.03% (0.01027) | 83.64th | v3 (v2023.03.01) |
| Aug 15, 2024 | 2.04% (0.02044) | 89.20th | v3 (v2023.03.01) |
| Jul 8, 2024 | 1.01% (0.01014) | 83.83th | v3 (v2023.03.01) |
| May 31, 2024 | 1.05% (0.01051) | 84.04th | v3 (v2023.03.01) |
| Apr 23, 2024 | 1.58% (0.01578) | 87.14th | v3 (v2023.03.01) |
| Feb 6, 2024 | 1.76% (0.01761) | 86.70th | v3 (v2023.03.01) |
| Sep 10, 2023 | 1.58% (0.01581) | 85.75th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.46% (0.01463) | 84.65th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.36% (0.04358) | 88.02th | v2 (v2022.01.01) |
| Apr 1, 2022 | 4.36% (0.04358) | 86.83th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.36% (0.04358) | 70.59th | v2 (v2022.01.01) |
References (39)
- http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html vendor-advisoryx_refsource_SUSEThird Party Advisory
- http://rhn.redhat.com/errata/RHSA-2007-0889.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://secunia.com/advisories/26642 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/26822 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/26838 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/26871 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/26895 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/26930 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/26967 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/27102 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/27377 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/27545 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/27864 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/28249 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/28658 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/30288 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secweb.se/en/advisories/php-wordwrap-vulnerability/ x_refsource_MISCThird Party Advisory
- http://support.avaya.com/elmodocs2/security/ASA-2007-449.htm x_refsource_CONFIRMThird Party Advisory
- http://www.debian.org/security/2008/dsa-1444 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.debian.org/security/2008/dsa-1578 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml vendor-advisoryx_refsource_GENTOOThird Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:187 vendor-advisoryx_refsource_MANDRIVAThird Party Advisory
- http://www.php.net/ChangeLog-5.php#5.2.4 x_refsource_CONFIRMVendor Advisory
- http://www.php.net/releases/5_2_4.php x_refsource_CONFIRMVendor Advisory
- http://www.redhat.com/support/errata/RHSA-2007-0890.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://www.redhat.com/support/errata/RHSA-2007-0891.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://www.trustix.org/errata/2007/0026/ vendor-advisoryx_refsource_TRUSTIXBroken Link
- http://www.ubuntu.com/usn/usn-549-2 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- http://www.vupen.com/english/advisories/2007/3023 vdb-entryx_refsource_VUPENPermissions RequiredThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2007-3998 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=276081 Issue Tracking
- https://issues.rpath.com/browse/RPL-1693 x_refsource_CONFIRMBroken Link
- https://issues.rpath.com/browse/RPL-1702 x_refsource_CONFIRMBroken Link
- https://launchpad.net/bugs/173043 x_refsource_CONFIRMThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2007-3998
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10603 vdb-entrysignaturex_refsource_OVALThird Party Advisory
- https://usn.ubuntu.com/549-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2007-3998
- https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00354.html vendor-advisoryx_refsource_FEDORAThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html | vendor-advisoryx_refsource_SUSEThird Party Advisory | |
| http://rhn.redhat.com/errata/RHSA-2007-0889.html | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| http://secunia.com/advisories/26642 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/26822 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/26838 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/26871 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/26895 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/26930 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/26967 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/27102 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/27377 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/27545 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/27864 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/28249 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/28658 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/30288 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secweb.se/en/advisories/php-wordwrap-vulnerability/ | x_refsource_MISCThird Party Advisory | |
| http://support.avaya.com/elmodocs2/security/ASA-2007-449.htm | x_refsource_CONFIRMThird Party Advisory | |
| http://www.debian.org/security/2008/dsa-1444 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| http://www.debian.org/security/2008/dsa-1578 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml | vendor-advisoryx_refsource_GENTOOThird Party Advisory | |
| http://www.mandriva.com/security/advisories?name=MDKSA-2007:187 | vendor-advisoryx_refsource_MANDRIVAThird Party Advisory | |
| http://www.php.net/ChangeLog-5.php#5.2.4 | x_refsource_CONFIRMVendor Advisory | |
| http://www.php.net/releases/5_2_4.php | x_refsource_CONFIRMVendor Advisory | |
| http://www.redhat.com/support/errata/RHSA-2007-0890.html | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| http://www.redhat.com/support/errata/RHSA-2007-0891.html | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| http://www.trustix.org/errata/2007/0026/ | vendor-advisoryx_refsource_TRUSTIXBroken Link | |
| http://www.ubuntu.com/usn/usn-549-2 | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| http://www.vupen.com/english/advisories/2007/3023 | vdb-entryx_refsource_VUPENPermissions RequiredThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2007-3998 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=276081 | Issue Tracking | |
| https://issues.rpath.com/browse/RPL-1693 | x_refsource_CONFIRMBroken Link | |
| https://issues.rpath.com/browse/RPL-1702 | x_refsource_CONFIRMBroken Link | |
| https://launchpad.net/bugs/173043 | x_refsource_CONFIRMThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2007-3998 | ||
| https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10603 | vdb-entrysignaturex_refsource_OVALThird Party Advisory | |
| https://usn.ubuntu.com/549-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2007-3998 | ||
| https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00354.html | vendor-advisoryx_refsource_FEDORAThird Party Advisory |
Change history (0)
No recorded changes yet.