The wordwrap function in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, does not properly…
Priority LOW 28CWE-20Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Partial
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat.
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.
Why it matters now
EPSS 0.02993 87th percentileScored 2026-11-07
Fix Fixed Red Hat: 4 advisories
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | 4.0.0 to before 4.4.8; 5.0.0 to before 5.2.4 | Vulnerable | PHP |
| cpe:2.3:o:debian:debian_linux:3.1:*:*:*:*:*:*:* | 3.1 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:* | 4.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:* | 6.06 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:6.10:*:*:*:*:*:*:* | 6.10 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* | 7.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:* | 7.10 | Vulnerable | Canonical |
- cpe:2.3:a:php:php:*:*:*:*:*:*:*:* Versions 4.0.0 to before 4.4.8; 5.0.0 to before 5.2.4 Vulnerable ·PHP
- cpe:2.3:o:debian:debian_linux:3.1:*:*:*:*:*:*:* Versions 3.1 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:* Versions 4.0 Vulnerable ·Debian
- cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:* Versions 6.06 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:6.10:*:*:*:*:*:*:* Versions 6.10 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* Versions 7.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:* Versions 7.10 Vulnerable ·Canonical
Remediation
Red Hat 4 advisories
- RHSA-2007:0891 Released 2007-10-25 · Red Hat rating Moderatephp security update
- Red Hat Application Stack v1 for Enterprise Linux AS (v.4) php-5.1.6-3.el4s1.8, php-5.1.6-3.el4s1.8.i386, php-bcmath-5.1.6-3.el4s1.8 +35
- Red Hat Application Stack v1 for Enterprise Linux ES (v.4) php-5.1.6-3.el4s1.8, php-5.1.6-3.el4s1.8.i386, php-bcmath-5.1.6-3.el4s1.8 +35
- RHSA-2007:0917 Released 2007-10-23 · Red Hat rating Moderatephp security update
- Red Hat Application Stack v2 for Enterprise Linux (v.5) php-5.2.3-3.el5s2, php-5.2.3-3.el5s2.i386, php-bcmath-5.2.3-3.el5s2 +35
- RHSA-2007:0889 Released 2007-09-26 · Red Hat rating Moderatephp security update
- Red Hat Desktop version 3 php-4.3.2-43.ent, php-4.3.2-43.ent.i386, php-devel-4.3.2-43.ent +11
- Red Hat Enterprise Linux AS version 3 php-4.3.2-43.ent, php-4.3.2-43.ent.i386, php-4.3.2-43.ent.ia64 +25
- Red Hat Enterprise Linux ES version 3 php-4.3.2-43.ent, php-4.3.2-43.ent.i386, php-4.3.2-43.ent.ia64 +18
- Red Hat Enterprise Linux WS version 3 php-4.3.2-43.ent, php-4.3.2-43.ent.i386, php-4.3.2-43.ent.ia64 +18
Show 1 more Red Hat advisories
- RHSA-2007:0890 Released 2007-09-20 · Red Hat rating Moderatephp security update
- Red Hat Enterprise Linux (v. 5 server) php-5.1.6-15.el5, php-5.1.6-15.el5.i386, php-5.1.6-15.el5.ia64 +47
- Red Hat Enterprise Linux AS version 4 php-4.3.9-3.22.9, php-4.3.9-3.22.9.i386, php-4.3.9-3.22.9.ia64 +47
- Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php-5.1.6-15.el5, php-5.1.6-15.el5.i386, php-bcmath-5.1.6-15.el5 +35
- Red Hat Enterprise Linux Desktop version 4 php-4.3.9-3.22.9, php-4.3.9-3.22.9.i386, php-devel-4.3.9-3.22.9 +25
- Red Hat Enterprise Linux ES version 4 php-4.3.9-3.22.9, php-4.3.9-3.22.9.i386, php-4.3.9-3.22.9.ia64 +39
- Red Hat Enterprise Linux WS version 4 php-4.3.9-3.22.9, php-4.3.9-3.22.9.i386, php-4.3.9-3.22.9.ia64 +39
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Application Stack v1 for Enterprise Linux AS (v.4) | Fixed | RHSA-2007:0891 |
| Red Hat Application Stack v1 for Enterprise Linux ES (v.4) | Fixed | RHSA-2007:0891 |
| Red Hat Desktop version 3 | Fixed | RHSA-2007:0889 |
| Red Hat Enterprise Linux (v. 5 server) | Fixed | RHSA-2007:0890 |
| Red Hat Enterprise Linux AS version 3 | Fixed | RHSA-2007:0889 |
| Red Hat Enterprise Linux AS version 4 | Fixed | RHSA-2007:0890 |
| Red Hat Enterprise Linux Desktop Workstation (v. 5 client) | Fixed | RHSA-2007:0890 |
| Red Hat Enterprise Linux Desktop version 4 | Fixed | RHSA-2007:0890 |
| Red Hat Enterprise Linux ES version 3 | Fixed | RHSA-2007:0889 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2007:0890 |
| Red Hat Enterprise Linux WS version 3 | Fixed | RHSA-2007:0889 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2007:0890 |
Timeline
- 2026-10-02 Threatist record created from CVE-2007-3998
- 2026-10-03 Alias added: GHSA-7r5x-79rr-q8gm
References
Advisory 19
- https://launchpad.net/bugs/173043
- oval:org.mitre.oval:def:10603
- SUSE-SA:2008:004
- FEDORA-2007-709
- DSA-1444
- GLSA-200710-02
- http://www.php.net/ChangeLog-5.php#5.2.4
- 2007-0026
- RHSA-2007:0889
- USN-549-1
- DSA-1578
- http://support.avaya.com/elmodocs2/security/ASA-2007-449.htm
- http://secweb.se/en/advisories/php-wordwrap-vulnerability/
- MDKSA-2007:187
- ADV-2007-3023
- http://www.php.net/releases/5_2_4.php
- USN-549-2
- RHSA-2007:0890
- RHSA-2007:0891
Sources
- CVE-2007-3998 · CVE Program
- CVE-2007-3998 · NVD
- FIRST EPSS
- GHSA-7r5x-79rr-q8gm · GitHub Advisory Database · CC BY 4.0
- CVE-2007-3998 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences