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

Medium 5.0 Published Updated

Attackers can crash PHP applications by passing long strings to specific iconv functions, causing a denial of service.

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

What is CVE-2007-4840?

CVE-2007-4840 is a medium-severity denial of service vulnerability in Php Php, published on 12 Sep 2007. It can be exploited over the network, with no action from the victim.

Official description

PHP 5.2.4 and earlier allows context-dependent attackers to cause a denial of service (application crash) via (1) a long string in the out_charset parameter to the iconv function; or a long string in the charset parameter to the (2) iconv_mime_decode_headers, (3) iconv_mime_decode, or (4) iconv_strlen function. 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-20

Which versions are affected by CVE-2007-4840?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2007-4840?

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

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

All Php Php vulnerabilities

Sources

Also known as DEBIAN-CVE-2007-4840, GHSA-pgvh-6hc4-99ch.

Is CVE-2007-4840 in your software?

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

Check your SBOMs for free