All reports
High

Moodle uses predictable password-recovery tokens

Affected versions

Affected versions
< 2.7.10
Fixed version
2.7.10
Affected versions
>= 2.9.0, < 2.9.2
Fixed version
2.9.2
Affected versions
>= 2.8.0, < 2.8.8
Fixed version
2.8.8

Exploitation

CVE-2015-5267

Probability of exploitation in the next 30 days: 2.37%

FIRST EPSS · 2026-11-21

Description

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.

Links

Credits

  • MarkLee131