SQL Injection Affecting moodle/moodle package, versions <3.9.17>=3.11.0, <3.11.10>=4.0.0, <4.0.4


Severity

Recommended
0.0
low
0
10

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

Threat Intelligence

EPSS
0.16% (54th 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 Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MOODLEMOODLE-3038597
  • published2 Oct 2022
  • disclosed2 Oct 2022
  • creditVincent

Introduced: 2 Oct 2022

CVE-2022-40315  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 3.9.17, 3.11.10, 4.0.4 or higher.

Overview

moodle/moodle is a learning platform.

Affected versions of this package are vulnerable to SQL Injection in the get_users_listing() function in datalib.php. An admin user can inject limited SQL via the "browse list of users" site administration page.

CVSS Scores

version 3.1