Security mailing lists by PureSourceCode

CVE-2007-3998

MEDIUM 5.0CVSS 2.0

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.

Published
4 Sep 2007
Last modified
16 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-20
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 4.0.0, < 4.4.8 4.4.8
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 5.0.0, < 5.2.4 5.2.4
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:3.1:*:*:*:*:*:*:*
= 3.1
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*
= 4.0
NVD canonical ubuntu_linux
cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:*
= 6.06
NVD canonical ubuntu_linux
cpe:2.3:o:canonical:ubuntu_linux:6.10:*:*:*:*:*:*:*
= 6.10
NVD canonical ubuntu_linux
cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:*
= 7.04
NVD canonical ubuntu_linux
cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:*
= 7.10

References

History

  • 25 Nov 2026 20:14 UTC · NVD: first stored (published 4 Sep 2007)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.