{"id":"CVE-2008-4107","aliases":["EUVD-2008-4090","GHSA-q8f7-frqh-rw7w"],"status":"published","title":"The (1) rand and (2) mt_rand functions in PHP 5.2.6 do not produce cryptographically strong...","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.","severity":{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.03013,"percentile":0.87516,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-189"],"published":"2008-09-18T17:47:00Z","modified":"2026-06-16T22:57:11Z","products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://secunia.com/advisories/31737","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://marc.info/?l=oss-security\u0026m=122152830017099\u0026w=2","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://securityreason.com/securityalert/4271","tags":["third-party-advisory","x_refsource_SREASON","x_transferred"]},{"url":"http://www.securityfocus.com/bid/31115","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/496237/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers/","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2008/2553","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2008/09/11/6","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://osvdb.org/48700","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://www.sektioneins.de/advisories/SE-2008-05.txt","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://secunia.com/advisories/31870","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://www.securityfocus.com/archive/1/496287/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://securitytracker.com/id?1020869","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2008-September/msg00629.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2008-September/msg00607.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/45956","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://wordpress.org/development/2008/09/wordpress-262/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.sektioneins.de/advisories/SE-2008-04.txt","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.sektioneins.de/advisories/SE-2008-02.txt","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-4107"},{"url":"http://wordpress.org/development/2008/09/wordpress-262"},{"url":"http://www.suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers"},{"url":"https://github.com/advisories/GHSA-q8f7-frqh-rw7w"}],"sources":{"cve":[{"id":"CVE-2008-4107","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.","status":"published","published":"2008-09-18T17:47:00Z","modified":"2024-08-07T10:00:42.599Z","updated_at":"2026-11-02T14:34:46.950176Z"}],"euvd":[{"id":"EUVD-2008-4090","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.","status":"published","published":"2008-09-18T17:47:00Z","modified":"2024-08-07T10:00:42Z","updated_at":"2026-11-03T01:38:49.434096Z"}],"ghsa":[{"id":"GHSA-q8f7-frqh-rw7w","title":"The (1) rand and (2) mt_rand functions in PHP 5.2.6 do not produce cryptographically strong...","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.","status":"published","published":"2022-05-02T00:06:52Z","modified":"2025-04-09T03:59:29Z","updated_at":"2026-11-02T15:00:58.052014Z"}],"nvd":[{"id":"CVE-2008-4107","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.","status":"published","published":"2008-09-18T17:59:33.063Z","modified":"2026-06-16T22:57:11.583Z","cvss":[{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-189"],"updated_at":"2026-11-02T14:01:28.625777Z"}]}}
