CVE Vulnerabilities

CVE-2008-2108

Insufficient Entropy

Published: May 07, 2008 | Modified: Apr 09, 2025
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

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

The product uses an algorithm or scheme that produces insufficient entropy, leaving patterns or clusters of values that are more likely to occur than others.

Affected Software

NameVendorStart VersionEnd Version
PhpPhp4.0.0 (including)4.4.8 (excluding)
PhpPhp5.0.0 (including)5.2.5 (excluding)
Red Hat Enterprise Linux 2.1RedHatphp-0:4.1.2-2.20*
Red Hat Enterprise Linux 3RedHatphp-0:4.3.2-48.ent*
Red Hat Enterprise Linux 4RedHatphp-0:4.3.9-3.22.12*
Red Hat Enterprise Linux 5RedHatphp-0:5.1.6-20.el5_2.1*
Red Hat Web Application Stack for RHEL 4RedHatphp-0:5.1.6-3.el4s1.10*
Php5Ubuntudapper*
Php5Ubuntufeisty*
Php5Ubuntugutsy*
Php5Ubuntuhardy*
Php5Ubuntuupstream*

Potential Mitigations

References