PHP: insecure random numbers
Published Sep 18, 2008
5.1
MEDIUMCVSS 2.0
EPSS 3.01%
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
No data.
Configuration 1
- ≤ 4.4.8
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0.0
- 4.0.1
- 4.0.1
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0.6
- 4.0.7
- 4.0.7
- 4.0.7
- 4.0.7
- 4.1.0
- 4.1.1
- 4.1.2
- 4.2
- 4.2.0
- 4.2.1
- 4.2.2
- 4.2.3
- 4.3.0
- 4.3.1
- 4.3.2
- 4.3.3
- 4.3.4
- 4.3.5
- 4.3.6
- 4.3.7
- 4.3.8
- 4.3.9
- 4.3.10
- 4.3.11
- 4.4.0
- 4.4.1
- 4.4.2
- 4.4.3
- 4.4.4
- 4.4.5
- 4.4.6
- 4.4.7
Configuration 2
- ≤ 5.2.5
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.1
- 5.0.4
- 5.0.5
- 5.1.0
- 5.1.2
- 5.1.4
- 5.1.5
- 5.1.6
- 5.2.0
- 5.2.1
- 5.2.2
- 5.2.3
- 5.2.4
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
The risks associated with fixing this bug are greater than the security risk. We therefore currently have no plans to fix this flaw in Red HatEnterprise Linux 2.1, 3, 4, or 5. For more information please see our bug for this issue: https://bugzilla.redhat.com/show_bug.cgi?id=462772
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:H/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.01% (0.03013) | 86.95th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.01% (0.03013) | 85.64th | v5 (v2026.06.15) |
| Mar 30, 2025 | 10.06% (0.10061) | 92.34th | v4 (v2025.03.14) |
| Mar 29, 2025 | 17.56% (0.17556) | 91.88th | v4 (v2025.03.14) |
| Mar 24, 2025 | 10.06% (0.10061) | 92.35th | v4 (v2025.03.14) |
| Mar 23, 2025 | 17.56% (0.17556) | 94.27th | v4 (v2025.03.14) |
| Mar 17, 2025 | 10.06% (0.10061) | 92.50th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.67% (0.01670) | 88.15th | v3 (v2023.03.01) |
| May 8, 2024 | 1.42% (0.01415) | 86.41th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.42% (0.01415) | 84.41th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.69% (0.02686) | 81.17th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
References (23)
- http://marc.info/?l=oss-security&m=122152830017099&w=2 mailing-listx_refsource_MLIST
- http://osvdb.org/48700 vdb-entryx_refsource_OSVDB
- http://secunia.com/advisories/31737 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://secunia.com/advisories/31870 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://securityreason.com/securityalert/4271 third-party-advisoryx_refsource_SREASON
- http://securitytracker.com/id?1020869 vdb-entryx_refsource_SECTRACK
- http://wordpress.org/development/2008/09/wordpress-262/ x_refsource_CONFIRM
- http://www.openwall.com/lists/oss-security/2008/09/11/6 mailing-listx_refsource_MLIST
- http://www.securityfocus.com/archive/1/496237/100/0/threaded mailing-listx_refsource_BUGTRAQ
- http://www.securityfocus.com/archive/1/496287/100/0/threaded mailing-listx_refsource_BUGTRAQ
- http://www.securityfocus.com/bid/31115 vdb-entryx_refsource_BID
- http://www.sektioneins.de/advisories/SE-2008-02.txt x_refsource_MISC
- http://www.sektioneins.de/advisories/SE-2008-04.txt x_refsource_MISC
- http://www.sektioneins.de/advisories/SE-2008-05.txt x_refsource_MISC
- http://www.suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers/ x_refsource_MISC
- http://www.vupen.com/english/advisories/2008/2553 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2008-4107 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=462772 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/45956 vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2008-4107
- https://www.cve.org/CVERecord?id=CVE-2008-4107
- https://www.redhat.com/archives/fedora-package-announce/2008-September/msg00607.html vendor-advisoryx_refsource_FEDORA
- https://www.redhat.com/archives/fedora-package-announce/2008-September/msg00629.html vendor-advisoryx_refsource_FEDORA
Change history (0)
No recorded changes yet.