CVE-2008-4107
The (1) rand and (2) mt_rand functions in PHP 5.2.6 do not produce cryptographically strong...
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.
Exploit likelihood
What each source reports
NVD Score used
5.1
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.
- Record
CVE-2008-4107- CVSS 2.0
- 5.1 Medium
AV:N/AC:H/Au:N/C:P/I:P/A:P - Weakness
- CWE-189
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2008-4107- Updated
- 2026-11-02
EUVDEUVD-2008-4090 No score
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.
- Record
EUVD-2008-4090- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-q8f7-frqh-rw7w No score
The (1) rand and (2) mt_rand functions in PHP 5.2.6 do not produce cryptographically strong...
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.
- Record
GHSA-q8f7-frqh-rw7w- Updated
- 2026-11-02
Affected products
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2008-4107 is a medium vulnerability (CVSS 5.1) in Php, published September 18, 2008. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.01%, the 87th percentile. No source names a fixed version.
References
secunia.com/advisories/31737
marc.info?l=oss-security&m=122152830017099&w=2
securityreason.com/securityalert/4271
securityfocus.com/bid/31115
securityfocus.com/archive/1/496237/100/0/threaded
suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers
Show 15 moreShow less
vupen.com/english/advisories/2008/2553
openwall.com/lists/oss-security/2008/09/11/6
osvdb.org/48700
sektioneins.de/advisories/SE-2008-05.txt
secunia.com/advisories/31870
securityfocus.com/archive/1/496287/100/0/threaded
securitytracker.com/id?1020869
redhat.com/archives/fedora-package-announce/2008-September/msg00629.html
redhat.com/archives/fedora-package-announce/2008-September/msg00607.html
exchange.xforce.ibmcloud.com/vulnerabilities/45956
wordpress.org/development/2008/09/wordpress-262
sektioneins.de/advisories/SE-2008-04.txt
sektioneins.de/advisories/SE-2008-02.txt
nvd.nist.gov/vuln/detail/CVE-2008-4107
github.com/advisories/GHSA-q8f7-frqh-rw7w