CVE-2008-2108 Weak cryptography in n/a

Critical 9.8 Published Updated

Insufficient entropy in PHP's random number generation on 64-bit systems allows attackers to simplify brute force attacks against security mechanisms.

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

CVE-2008-2108 is a critical vulnerability in Canonical Ubuntu Linux, 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 64-bit systems, performs a multiplication that generates a portion of zero bits during conversion due to insufficient precision, which produces 24 bits of entropy and simplifies brute force attacks against protection mechanisms that use the rand and mt_rand functions.

Weakness: CWE-331

Which versions are affected by CVE-2008-2108?

It affects 4 products.

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

How do I fix CVE-2008-2108?

Upgrade to a fixed version.

Is CVE-2008-2108 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-ch9c-f347-cqvw.

Is CVE-2008-2108 in your software?

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

Check your SBOMs for free