CVE-2007-4657 Integer overflow in n/a

High 7.5 Published Updated

Remote attackers can trigger integer overflows in PHP's strspn or strcspn functions to read sensitive memory or crash the application.

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

CVE-2007-4657 is a high-severity 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

Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers to obtain sensitive information (memory contents) or cause a denial of service (thread crash) via a large len value to the (1) strspn or (2) strcspn function, which triggers an out-of-bounds read. NOTE: this affects different product versions than CVE-2007-3996.

Weakness: CWE-189, CWE-119

Which versions are affected by CVE-2007-4657?

It affects 3 products.

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

How do I fix CVE-2007-4657?

Upgrade to a fixed version.

Is CVE-2007-4657 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-43ww-xqjh-ppmf.

Is CVE-2007-4657 in your software?

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

Check your SBOMs for free