CVE-2015-5267
HIGH 7.5CVSS 3.0Moodle uses predictable password-recovery tokens
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.
- Published
- 22 Feb 2016
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-200
- Also known as
- GHSA-382v-gxj9-ffhc
- Sources
- NVDJSONOSV GHSA-382v-gxj9-ffhcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
<= 2.6.11 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.7.0:*:*:*:*:*:*:* |
= 2.7.0 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.7.1:*:*:*:*:*:*:* |
= 2.7.1 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.7.2:*:*:*:*:*:*:* |
= 2.7.2 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.7.3:*:*:*:*:*:*:* |
= 2.7.3 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.7.4:*:*:*:*:*:*:* |
= 2.7.4 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.7.5:*:*:*:*:*:*:* |
= 2.7.5 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.7.6:*:*:*:*:*:*:* |
= 2.7.6 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.7.7:*:*:*:*:*:*:* |
= 2.7.7 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.7.8:*:*:*:*:*:*:* |
= 2.7.8 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.7.9:*:*:*:*:*:*:* |
= 2.7.9 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.8.0:*:*:*:*:*:*:* |
= 2.8.0 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.8.1:*:*:*:*:*:*:* |
= 2.8.1 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.8.2:*:*:*:*:*:*:* |
= 2.8.2 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.8.3:*:*:*:*:*:*:* |
= 2.8.3 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.8.4:*:*:*:*:*:*:* |
= 2.8.4 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.8.5:*:*:*:*:*:*:* |
= 2.8.5 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.8.6:*:*:*:*:*:*:* |
= 2.8.6 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.8.7:*:*:*:*:*:*:* |
= 2.8.7 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.9.0:*:*:*:*:*:*:* |
= 2.9.0 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.9.1:*:*:*:*:*:*:* |
= 2.9.1 | |
| OSV | Packagist | moodle/moodle | < 2.7.10 | 2.7.10 |
| OSV | Packagist | moodle/moodle | >= 2.8.0, < 2.8.8 | 2.8.8 |
| OSV | Packagist | moodle/moodle | >= 2.9.0, < 2.9.2 | 2.9.2 |
References
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-50860 · WEB
- http://www.openwall.com/lists/oss-security/2015/09/21/1 · WEB
- http://www.securitytracker.com/id/1033619
- https://moodle.org/mod/forum/discuss.php?d=320291 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2015-5267 · ADVISORY
- https://github.com/moodle/moodle/commit/289bc7f9e3022918b4cfd2cc9851472f0cea2896 · WEB
- https://github.com/moodle/moodle/commit/5337b2295237958c93b6c65fa595859aaa7bf257 · WEB
- https://github.com/moodle/moodle/commit/6e8224365ffcdf328458ea7852dc62574e806119 · WEB
- https://github.com/moodle/moodle/commit/e4ac3879c2d1f8fe66caa74ff1544248bccef61e · WEB
- https://github.com/moodle/moodle · PACKAGE
- https://web.archive.org/web/20160323063809/http://www.securitytracker.com/id/1033619 · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 22 Feb 2016)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 May 2022)