CVE-2015-5267
mediumpriority · track · 31EPSS 0.024 · 84 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (29)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-382v-gxj9-ffhcMoodle uses predictable password-recovery tokens2022-05-13ghsa · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-50860cnnvd
- http://www.openwall.com/lists/oss-security/2015/09/21/1cnnvd
- http://www.securitytracker.com/id/1033619cnnvd
- https://moodle.org/mod/forum/discuss.php?d=320291cnnvd
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-50860enisa_euvd
- http://www.openwall.com/lists/oss-security/2015/09/21/1enisa_euvd
- http://www.securitytracker.com/id/1033619enisa_euvd
- https://moodle.org/mod/forum/discuss.php?d=320291enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan