{"id":"CVE-2015-5267","published":"2016-02-22T02:00:00Z","modified":"2024-08-06T06:41:09Z","title":"lib/moodlelib.php in Moodle through 2.6.11, 2.7.x before 2.7.10, 2.8.x before 2.8.8, and 2.9.x before 2.9.2 relies on…","vendor":null,"product":null,"tier":"tail","description":{"text":"lib/moodlelib.php in Moodle through 2.6.11, 2.7.x before 2.7.10, 2.8.x before 2.8.8, and 2.9.x before 2.9.2 relies on the PHP mt_rand function to implement the random_string and complex_random_string functions, which makes it easier for remote attackers to predict password-recovery tokens via a brute-force approach.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02374,"percentile":0.84254,"provenance":"source"},"cwes":[],"references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-50860","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2015/09/21/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.securitytracker.com/id/1033619","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=320291","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":16.85}]},"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":["<2.7.10",">=2.8.0, <2.8.8",">=2.9.0, <2.9.2"],"patched":["2.7.10","2.8.8","2.9.2"],"from":["GHSA-382v-gxj9-ffhc"],"provenance":"source"}],"summary":{"text":"The flaw lies in lib/moodlelib.php in the Moodle learning platform (through 2.6.11, 2.7.x before 2.7.10, 2.8.x before 2.8.8, and 2.9.x before 2.9.2), where the random_string and complex_random_string functions rely on PHP's mt_rand for randomness. An attacker who can reach the Moodle instance over the network can use a brute-force approach to predict password-recovery tokens generated by these functions, and no authentication or user interaction is indicated as a requirement.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:08Z"},"euvd":{"id":"EUVD-2022-2128","exploited":false,"provenance":"source"}}