CVE-2008-2107 Weak cryptography in n/a

High 7.5 Published Updated

Attackers can predict random numbers in PHP on 32-bit systems due to a zero seed bug, potentially bypassing security mechanisms relying on randomness.

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

What is CVE-2008-2107?

CVE-2008-2107 is a high-severity vulnerability in Php Php, published on 7 May 2008. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The GENERATE_SEED macro in PHP 4.x before 4.4.8 and 5.x before 5.2.5, when running on 32-bit systems, performs a multiplication using values that can produce a zero seed in rare circumstances, which allows context-dependent attackers to predict subsequent values of the rand and mt_rand functions and possibly bypass protection mechanisms that rely on an unknown initial seed.

Weakness: CWE-189

Which versions are affected by CVE-2008-2107?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2008-2107?

Upgrade to a fixed version.

Is CVE-2008-2107 being exploited?

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

All Php Php vulnerabilities

Sources

Also known as GHSA-j466-8vvm-x7cw.

Is CVE-2008-2107 in your software?

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

Check your SBOMs for free