CVE-2008-4107 json
The (1) rand and (2) mt_rand functions in PHP 5.2.6 do not produce cryptographically strong random numbers, which allows attackers to lever…
published 2008-09-18 18 y ago modified 2026-06-16 4 mo ago also EUVD-2008-4090
- cvss
- 5.1
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2008-4107 updated
PHP: insecure random numbers
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.01% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-189 Numeric Errors
- Technology feeds
References
-
redhat.com
/archives/fedora-package-announce/2008-September/msg00629.html
vendor-advisory
-
redhat.com
/archives/fedora-package-announce/2008-September/msg00607.html
vendor-advisory
-
secunia.com
/advisories/31737
third-party-advisory, vendor-advisory
-
secunia.com
/advisories/31870
third-party-advisory, vendor-advisory
-
marc.info
/?l=oss-security&m=122152830017099&w=2
mailing-list
-
securityreason.com
/securityalert/4271
third-party-advisory
-
securityfocus.com
/bid/31115
vdb-entry
-
securityfocus.com
/archive/1/496237/100/0/threaded
mailing-list
- suspekt.org /2008/08/17/mt_srand-and-not-so-random-numbers/
-
vupen.com
/english/advisories/2008/2553
vdb-entry
-
openwall.com
/lists/oss-security/2008/09/11/6
mailing-list
-
osvdb.org
/48700
vdb-entry
- sektioneins.de /advisories/SE-2008-05.txt
-
securityfocus.com
/archive/1/496287/100/0/threaded
mailing-list
-
securitytracker.com
/id?1020869
vdb-entry
-
exchange.xforce.ibmcloud.com
/vulnerabilities/45956
vdb-entry
- wordpress.org /development/2008/09/wordpress-262/
- sektioneins.de /advisories/SE-2008-04.txt
- sektioneins.de /advisories/SE-2008-02.txt
Sources
- CVE List CVE-2008-4107
- NVD CVE-2008-4107
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.