CVE-2008-2108

CRITICALCVSS 9.8/10EPSS 4.29%

Last modified

CVE-2008-2108 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 4.29% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
4.29%

89.9th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PhpPhp>= 4.0.0, < 4.4.8
PhpPhp>= 5.0.0, < 5.2.5
FedoraprojectFedora8
FedoraprojectFedora9
CanonicalUbuntu Linux6.06
CanonicalUbuntu Linux7.04
CanonicalUbuntu Linux7.10
CanonicalUbuntu Linux8.04
DebianDebian Linux4.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2008-2108?
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.
How severe is CVE-2008-2108?
CVE-2008-2108 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 4.29% probability of exploitation in the next 30 days.
How do I fix CVE-2008-2108?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2008-2108?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST