Vulnerability in PHP
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.043, 91.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- PHP
- Canonical Ubuntu Linux — versions 6.06, 7.04, 7.10
- Debian Linux — versions 4.0
- Fedoraproject Fedora — versions 8, 9
Weakness classification (CWE)
References
- FEDORA-2008-3606 (vendor-advisory, Mailing List)
- secunia.com/advisories/32746 (Broken Link, third-party-advisory)
- 20080506 Advisory SE-2008-02: PHP GENERATE_SEED() Weak Random Number Seed Vulnerability (mailing-list, Exploit, Broken Link)
- GLSA-200811-05 (vendor-advisory, Third Party Advisory)
- RHSA-2008:0546 (vendor-advisory, Broken Link)
- FEDORA-2008-3864 (vendor-advisory, Mailing List)
- secunia.com/advisories/30828 (Broken Link, third-party-advisory)
- MDVSA-2008:128 (vendor-advisory, Broken Link)
- securityreason.com/securityalert/3859 (Mailing List, third-party-advisory)
- RHSA-2008:0582 (vendor-advisory, Broken Link)