What’s Vulnerable › Vulnerabilities
CVE-2008-2107
- Severity: high (CVSS 7.5 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2008-05-07 · updated 2026-06-16
- Weakness: CWE-189
Description
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.
Affected products
- PHP: through 4.4.7; 5, 5.0.0-beta1, 5.0.0-beta2, 5.0.0-beta3, 5.0.0-rc1, 5.0.0-rc2 (+18)
References
- http://archives.neohapsis.com/archives/fulldisclosure/2008-05/0103.html
- http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00001.html
- http://secunia.com/advisories/30757
- http://secunia.com/advisories/30828
- http://secunia.com/advisories/30967
- http://secunia.com/advisories/31119
- http://secunia.com/advisories/31124
- http://secunia.com/advisories/31200
- http://secunia.com/advisories/32746
- http://secunia.com/advisories/35003
- http://security.gentoo.org/glsa/glsa-200811-05.xml
- http://securityreason.com/securityalert/3859
Get alerted when CVE-2008-2107 or the next vulnerability affects your stack