All vulnerabilities

Servers and applications

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.

Severity
Critical 9.8
Published
7 May 2008
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
4.4.8, 5.2.5
Exploit chance
4.3% in the next 30 daysHigher than 91% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
CWE-331
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 4.0.0 before 4.4.8
  • From 5.0.0 before 5.2.5

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2008-2108
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2008-2108