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

Medium 5.0 Published Updated

Attackers can crash PHP applications by passing long strings to glob or fnmatch functions, causing a denial of service.

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-4782?

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

Official description

PHP before 5.2.3 allows context-dependent attackers to cause a denial of service (application crash) via (1) a long string in the pattern parameter to the glob function; or (2) a long string in the string parameter to the fnmatch function, accompanied by a pattern parameter value with undefined characteristics, as demonstrated by a "*[1]e" value. NOTE: this might not be a vulnerability in most web server environments that support multiple threads, unless these issues can be demonstrated for code execution.

Weakness: CWE-94

Which versions are affected by CVE-2007-4782?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2007-4782?

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-4782 being exploited?

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

All Php Php vulnerabilities

Sources

Also known as GHSA-9q3v-wm75-qjw9.

Is CVE-2007-4782 in your software?

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

Check your SBOMs for free