Small Space of Random Values Affecting moodle/moodle package, versions <2.7.10>=2.8.0-beta, <2.8.8>=2.9.0-beta, <2.9.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (73rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-MOODLEMOODLE-6208122
  • published28 Jan 2024
  • disclosed13 May 2022
  • creditVincent Herbulot

Introduced: 13 May 2022

CVE-2015-5267  (opens in a new tab)
CWE-334  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 2.7.10, 2.8.8, 2.9.2 or higher.

Overview

moodle/moodle is a learning platform.

Affected versions of this package are vulnerable to Small Space of Random Values due to the reliance on the PHP mt_rand function for the random_string and complex_random_string functions. An attacker can predict password-recovery tokens by a brute-force approach.

CVSS Scores

version 3.1