CVE-2007-3998 Denial of service in n/a

Medium 5.0 Published Updated

Remote attackers can cause a denial of service via divide-by-zero or infinite loop in the PHP wordwrap function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2007-3998?

CVE-2007-3998 is a medium-severity denial of service vulnerability in Canonical Ubuntu Linux, published on 4 Sep 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-20

Which versions are affected by CVE-2007-3998?

It affects 3 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Php Php.

How do I fix CVE-2007-3998?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2007-3998 being exploited?

There is no known exploitation of CVE-2007-3998 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-7r5x-79rr-q8gm.

Is CVE-2007-3998 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free