Group-Based Access Restrictions Vulnerability in Moodle

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
4.3

CVE-2015-5339: Moodle does not properly implement group-based access restrictions. Affects moodle/moodle across 3 version ranges.

< 2.7.11 >= 2.8.0, < 2.8.9 >= 2.9.0, < 2.9.3

Fixed in 2.7.11, 2.8.9 or 2.9.3, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Moodle is an open-source learning management system (LMS) used by educational institutions to create and manage online courses. It provides a wide range of features for course administration, content creation, and student engagement. The vulnerability in question affects Moodle versions 2.6.11, 2.7.x before 2.7.11, 2.8.x before 2.8.9, and 2.9.x before 2.9.3. Moodle's core_enrol_get_enrolled_users web service in enrol/externallib.php does not properly implement group-based access restrictions.

Vulnerability Detail

The vulnerability allows remote authenticated users to obtain sensitive course-participant information by exploiting a flaw in the group-based access restrictions implementation. By making a web-service request, an attacker can bypass the intended access restrictions and retrieve confidential information about course participants. This information could include personally identifiable information (PII) or other sensitive data. The vulnerability has a CVSS score of 4.3, indicating a moderate severity level.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 2.7.11 2.7.11
    composer require moodle/moodle:2.7.11
  • >= 2.8.0, < 2.8.9 2.8.9
    composer require moodle/moodle:2.8.9
  • >= 2.9.0, < 2.9.3 2.9.3
    composer require moodle/moodle:2.9.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. However, administrators can mitigate the risk by restricting access to the affected web service (core_enrol_get_enrolled_users) or by implementing additional access controls at the network level. It is recommended to consult with Moodle's official documentation or seek assistance from Moodle's support community for further guidance on securing the system.

Conclusion

The group-based access restrictions vulnerability in Moodle exposes sensitive course-participant information to remote authenticated users. To mitigate this risk, it is crucial to update Moodle to the recommended versions and review access control settings. Administrators should follow the official Moodle documentation and seek assistance from the Moodle community for further support on vulnerability remediation. For real-time monitoring and alerting of open-source vulnerabilities, tools like Vulert can be utilized.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

Moodle is an open-source learning management system (LMS) used for creating and managing online courses.

The vulnerability affects Moodle versions 2.6.11, 2.7.x before 2.7.11, 2.8.x before 2.8.9, and 2.9.x before 2.9.3.

An attacker with remote authenticated access can exploit this vulnerability by making a web-service request to the core_enrol_get_enrolled_users endpoint and bypassing the group-based access restrictions.

By exploiting this vulnerability, an attacker can obtain sensitive course-participant information, which may include personally identifiable information (PII) or other confidential data.

The vulnerability has a CVSS score of 4.3, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 2.7.11 2.7.11
    composer require moodle/moodle:2.7.11
  • >= 2.8.0, < 2.8.9 2.8.9
    composer require moodle/moodle:2.8.9
  • >= 2.9.0, < 2.9.3 2.9.3
    composer require moodle/moodle:2.9.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback