CVE-2008-4107

PHP 5.2.6 - Weak Random Number Generation in rand and mt_rand Functions

Title source: llm
STIX 2.1

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.

References (19)

Core 19
Core References
Various Sources x_refsource_misc
http://www.sektioneins.de/advisories/SE-2008-05.txt
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/31737
Mailing List mailing-list x_refsource_mlist
http://marc.info/?l=oss-security&m=122152830017099&w=2
Third Party Advisory third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/4271
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/31115
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/496237/100/0/threaded
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2008/2553
Mailing List mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2008/09/11/6
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://osvdb.org/48700
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/31870
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/496287/100/0/threaded
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://securitytracker.com/id?1020869
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/45956
Various Sources x_refsource_misc
http://www.sektioneins.de/advisories/SE-2008-04.txt
Various Sources x_refsource_misc
http://www.sektioneins.de/advisories/SE-2008-02.txt

Scores

EPSS 0.1037
EPSS Percentile 93.3%

Details

CWE
CWE-189
Status published
Products (39)
php/php 4.0 beta1 (4 CPE variants)
php/php 4.0.0
php/php 4.0.1 (3 CPE variants)
php/php 4.0.2
php/php 4.0.3 patch1
php/php 4.0.4 patch1
php/php 4.0.5
php/php 4.0.6
php/php 4.0.7 (4 CPE variants)
php/php 4.1.0
... and 29 more
Published Sep 18, 2008
Tracked Since Feb 18, 2026