Live threats

All CVEs / Moodle

CVE-2015-5267Moodle

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
2.4%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Feb 22, 2016
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200, CWE-254
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Moodle.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist moodle/moodle < 2.7.10 2.7.10 composer require "moodle/moodle:^2.7.10"
Packagist moodle/moodle ≥ 2.8.0 < 2.8.8 2.8.8 composer require "moodle/moodle:^2.8.8"
Packagist moodle/moodle ≥ 2.9.0 < 2.9.2 2.9.2 composer require "moodle/moodle:^2.9.2"

Per OSV / GitHub Advisories (GHSA-382v-gxj9-ffhc). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
moodlemoodle≤ 2.6.11
moodlemoodle2.7.0
moodlemoodle2.7.1
moodlemoodle2.7.2
moodlemoodle2.7.3
moodlemoodle2.7.4
moodlemoodle2.7.5
moodlemoodle2.7.6
moodlemoodle2.7.7
moodlemoodle2.7.8
moodlemoodle2.7.9
moodlemoodle2.8.0
moodlemoodle2.8.1
moodlemoodle2.8.2
moodlemoodle2.8.3
moodlemoodle2.8.4
moodlemoodle2.8.5
moodlemoodle2.8.6
moodlemoodle2.8.7
moodlemoodle2.9.0
moodlemoodle2.9.1

Official sources

References

Links published by the sources. Open them with care.