Vulnerabilities / CVE-2008-2108

critical

CVE-2008-2108

PHP weak 64 bit random seed

Published Modified CWE 331
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

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

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Oracle (medium), Red Hat (low).

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.

Affected packages and fixed versions

SourcePackageFixed in
Oracle Linux 5php, php-bcmath, php-cli and 16 more5.1.6-20.el5_2.1
Show all 19 entries from 1 source
SourcePackageFixed in
Oracle Linux 5php5.1.6-20.el5_2.1
Oracle Linux 5php-bcmath5.1.6-20.el5_2.1
Oracle Linux 5php-cli5.1.6-20.el5_2.1
Oracle Linux 5php-common5.1.6-20.el5_2.1
Oracle Linux 5php-dba5.1.6-20.el5_2.1
Oracle Linux 5php-devel5.1.6-20.el5_2.1
Oracle Linux 5php-gd5.1.6-20.el5_2.1
Oracle Linux 5php-imap5.1.6-20.el5_2.1
Oracle Linux 5php-ldap5.1.6-20.el5_2.1
Oracle Linux 5php-mbstring5.1.6-20.el5_2.1
Oracle Linux 5php-mysql5.1.6-20.el5_2.1
Oracle Linux 5php-ncurses5.1.6-20.el5_2.1
Oracle Linux 5php-odbc5.1.6-20.el5_2.1
Oracle Linux 5php-pdo5.1.6-20.el5_2.1
Oracle Linux 5php-pgsql5.1.6-20.el5_2.1
Oracle Linux 5php-snmp5.1.6-20.el5_2.1
Oracle Linux 5php-soap5.1.6-20.el5_2.1
Oracle Linux 5php-xml5.1.6-20.el5_2.1
Oracle Linux 5php-xmlrpc5.1.6-20.el5_2.1

References

All 34 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.