What’s Vulnerable › Vulnerabilities
CVE-2008-4107
- Severity: medium (CVSS 5.1 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2008-09-18 · updated 2026-06-16
- Weakness: CWE-189
Description
The (1) rand and (2) mt_rand functions in PHP 5.2.6 do not produce cryptographically strong random numbers, which allows attackers to leverage exposures in products that rely on these functions for security-relevant functionality, as demonstrated by the password-reset functionality in Joomla! 1.5.x and WordPress before 2.6.2, a different vulnerability than CVE-2008-2107, CVE-2008-2108, and CVE-2008-4102.
Affected products
- PHP: through 4.4.8; through 5.2.5; 4.0-beta1, 4.0-beta3, 4.0-rc1, 4.0-rc2, 4.0.0, 4.0.1 (+56)
References
- http://marc.info/?l=oss-security&m=122152830017099&w=2
- http://osvdb.org/48700
- http://secunia.com/advisories/31737
- http://secunia.com/advisories/31870
- http://securityreason.com/securityalert/4271
- http://securitytracker.com/id?1020869
- http://wordpress.org/development/2008/09/wordpress-262/
- http://www.openwall.com/lists/oss-security/2008/09/11/6
- http://www.securityfocus.com/archive/1/496237/100/0/threaded
- http://www.securityfocus.com/archive/1/496287/100/0/threaded
- http://www.securityfocus.com/bid/31115
- http://www.sektioneins.de/advisories/SE-2008-02.txt
Get alerted when CVE-2008-4107 or the next vulnerability affects your stack