CVE-2008-4107
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.
Key facts
- CVSS score
- 5.1 (v2.0)
- Severity
- MEDIUM
- CVSS vector
AV:N/AC:H/Au:N/C:P/I:P/A:P- Weakness (CWE)
- CWE-189
- EPSS score
- 3.0% (87th percentile)
- In CISA KEV
- No
- In EU EUVD
- Yes (EUVD-2008-4090)
- Published
- September 18, 2008
- NVD last modified
- June 16, 2026
- Status
- Modified
EU Vulnerability Database (EUVD)
This vulnerability is also tracked by ENISA as EUVD-2008-4090 in the EU Vulnerability Database. Last updated in EUVD on August 7, 2024.
View on the EU Vulnerability DatabaseAffected products
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
and 13 more…
References
- http://marc.info/?l=oss-security&m=122152830017099&w=2
- http://osvdb.org/48700
- http://secunia.com/advisories/31737(Vendor Advisory)
- http://secunia.com/advisories/31870(Vendor Advisory)
- 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
- http://www.sektioneins.de/advisories/SE-2008-04.txt
- http://www.sektioneins.de/advisories/SE-2008-05.txt
- http://www.suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers/
- http://www.vupen.com/english/advisories/2008/2553
- https://exchange.xforce.ibmcloud.com/vulnerabilities/45956
- https://www.redhat.com/archives/fedora-package-announce/2008-September/msg00607.html
- https://www.redhat.com/archives/fedora-package-announce/2008-September/msg00629.html
Last updated September 17, 2026 · Source: NVD, CISA KEV, FIRST.org EPSS
Query CVEs from your AI assistant
The CVE/NVD Explorer brain answers CVE questions directly inside Claude, ChatGPT, or any MCP assistant — always up to date, no setup. Add it once and stop pasting advisories into chat.
Add the CVE brain