Live threats

All CVEs / Php

CVE-2007-3998Php

Medium 5.0 No auth needed

Priority
45
CVSS 2.0
5.0
EPSS
3.0%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Sep 4, 2007
Updated
Jun 16, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-20
Vector
AV:N/AC:L/Au:N/C:N/I:N/A:P

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp≥ 4.0.0 < 4.4.8
phpphp≥ 5.0.0 < 5.2.4
debiandebian_linux3.1
debiandebian_linux4.0
canonicalubuntu_linux6.06
canonicalubuntu_linux6.10
canonicalubuntu_linux7.04
canonicalubuntu_linux7.10

Official sources

References

Links published by the sources. Open them with care.