All vulnerabilities

Servers and applications

CVE-2008-2107

The GENERATE_SEED macro in PHP 4.x before 4.4.8 and 5.x before 5.2.5, when running on 32-bit systems, performs a multiplication using values that can produce a zero seed in rare circumstances, which allows context-dependent attackers to predict subsequent values of the rand and mt_rand functions and possibly bypass protection mechanisms that rely on an unknown initial seed.

Severity
High 7.5
Published
7 May 2008
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Exploit chance
3.4% in the next 30 daysHigher than 88% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
CWE-189
Attack
Over the network · No login needed
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Version 5.2.4
  • Version 5.2.3
  • Version 5.2.2
  • Version 5.2.1
All 25 release lines
  • Every version up to 4.4.7
  • Version 5.0.0-beta1
  • Version 5.0.0-beta2
  • Version 5.0.0-beta3
  • Version 5.0.0-rc1
  • Version 5.0.0-rc2
  • Version 5.0.0-rc3
  • Version 5
  • Version 5.0.1
  • Version 5.0.2
  • Version 5.0.3
  • Version 5.0.4
  • Version 5.0.5
  • Version 5.1.0
  • Version 5.1.1
  • Version 5.1.2
  • Version 5.1.3
  • Version 5.1.4
  • Version 5.1.5
  • Version 5.1.6
  • Version 5.2.0
  • Version 5.2.1
  • Version 5.2.2
  • Version 5.2.3
  • Version 5.2.4

References

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