All vulnerabilities

Servers and applications

CVE-2015-5267

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.

Severity
High 7.5
Published
22 Feb 2016
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Exploit chance
2.4% in the next 30 daysHigher than 84% of CVEs. EPSS by FIRST, 11 Nov 2026
Weakness
Information exposure (CWE-200)CWE-254
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Sources
NVD

Affected software

SoftwareAffected versions
MoodleServers and applications · cpe:a:moodle:moodle
  • Version 2.9.1
  • Version 2.9.0
  • Version 2.8.7
  • Version 2.8.6
All 21 release lines
  • Every version up to 2.6.11
  • Version 2.7.0
  • Version 2.7.1
  • Version 2.7.2
  • Version 2.7.3
  • Version 2.7.4
  • Version 2.7.5
  • Version 2.7.6
  • Version 2.7.7
  • Version 2.7.8
  • Version 2.7.9
  • Version 2.8.0
  • Version 2.8.1
  • Version 2.8.2
  • Version 2.8.3
  • Version 2.8.4
  • Version 2.8.5
  • Version 2.8.6
  • Version 2.8.7
  • Version 2.9.0
  • Version 2.9.1

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2015-5267
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2015-5267