Back
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…
Medium5.1EPSS 3.0%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 3.0% · top 13% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.1.
Weakness
Affected products
n/a
- affected n/a
References (19)
- 31737 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- [oss-security] 20080916 Re: CVE request: wordpress < 2.6.2 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 4271 (opens in a new tab)third-party-advisoryx_refsource_SREASONx_transferred
- 31115 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 20080911 Advisory 04/2008: Joomla Weak Random Password Reset Token Vulnerability (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- http://www.suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers/ (opens in a new tab)x_refsource_MISCx_transferred
- ADV-2008-2553 (opens in a new tab)vdb-entryx_refsource_VUPENx_transferred
- [oss-security] 20080911 CVE request: wordpress < 2.6.2 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 48700 (opens in a new tab)vdb-entryx_refsource_OSVDBx_transferred
- http://www.sektioneins.de/advisories/SE-2008-05.txt (opens in a new tab)x_refsource_MISCx_transferred
- 31870 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 20080911 Advisory 05/2008: Wordpress user_login Column SQL Truncation Vulnerability (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- 1020869 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- FEDORA-2008-7902 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2008-7760 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- php-rand-mtrand-weak-security(45956) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- http://wordpress.org/development/2008/09/wordpress-262/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://www.sektioneins.de/advisories/SE-2008-04.txt (opens in a new tab)x_refsource_MISCx_transferred
- http://www.sektioneins.de/advisories/SE-2008-02.txt (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2008-4107)Record last updated .