CVE-2015-5267
Moodle uses predictable password-recovery tokens
Reported by redhat · Published February 22, 2016
moodle/moodle is fixed in 2.9.2, 2.8.8 and 2.7.10 (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| moodle/moodle | Packagist | 2.9.2, 2.8.8, 2.7.10 |
| moodle | Ubuntu:16.04:LTS | 3.0.3+dfsg-0ubuntu1 |
| moodle | moodle | 2.6.11 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| moodle | moodle | 0, 2.8.0, 2.9.0 |
| n/a | n/a | * |
Timeline
- Sep 21, 2015 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Aug 6, 2024 CVE Updated
- Mar 17, 2026 Security Advisory
- Oct 13, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2015-5267
vulnetix vdb fixes CVE-2015-5267
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2015-5267/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- [oss-security] 20150921 Moodle security release mailing-listx_refsource_MLIST
- 1033619 vdb-entryx_refsource_SECTRACK
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2015-5267 advisory
- https://web.archive.org/web/20160323063809/http://www.securitytracker.com/id/1033619 url
- https://github.com/moodle/moodle/commit/289bc7f9e3022918b4cfd2cc9851472f0cea2896 fix
- https://github.com/moodle/moodle/commit/5337b2295237958c93b6c65fa595859aaa7bf257 fix
- https://github.com/moodle/moodle/commit/6e8224365ffcdf328458ea7852dc62574e806119 fix
- https://github.com/advisories/GHSA-382v-gxj9-ffhc advisory
- https://github.com/moodle/moodle/commit/e4ac3879c2d1f8fe66caa74ff1544248bccef61e fix