CVE-2011-4300: Moodle does not properly restrict access to category and course data

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
Not published

CVE-2011-4300: Moodle does not properly restrict access to category and course data. Affects moodle/moodle across 2 version ranges.

>= 2.0.0, < 2.0.5 >= 2.1, < 2.1.2

Fixed in 2.0.5 or 2.1.2, 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 for creating and delivering online courses. It provides a platform for educators to create interactive and collaborative learning environments. Moodle allows users to organize courses into categories and access course materials, including files and resources. However, a vulnerability in the file_browser component of Moodle versions 2.0.x before 2.0.5 and 2.1.x before 2.1.2 allows unauthorized access to category and course data.

Vulnerability Detail

The vulnerability in Moodle's file_browser component allows remote attackers to obtain potentially sensitive information by exploiting a flaw in the access control mechanism. By sending a specially crafted request for a file, an attacker can bypass the intended restrictions and gain access to category and course data. This could lead to the exposure of confidential information, such as course materials, student data, and other sensitive resources.

How To Fix

Fixed versions by release line

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

  • >= 2.0.0, < 2.0.5 2.0.5
    composer require moodle/moodle:2.0.5
  • >= 2.1, < 2.1.2 2.1.2
    composer require moodle/moodle:2.1.2

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. It is advised to apply the recommended fix by upgrading to the patched versions of Moodle.

Conclusion

The vulnerability in Moodle's file_browser component can allow unauthorized access to category and course data, potentially exposing sensitive information. It is important to apply the recommended fix by upgrading to the patched versions of Moodle and keeping the installation up to date with security updates. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

Moodle is an open-source learning management system (LMS) used for creating and delivering online courses. It provides a platform for educators to create interactive and collaborative learning environments.

The file_browser component in Moodle allows users to browse and access files and resources associated with courses. It is used for managing and organizing course materials.

The vulnerability occurs due to a lack of proper access control checks in the file_browser component. This allows remote attackers to bypass the intended restrictions and gain unauthorized access to category and course data.

The vulnerability could lead to the exposure of confidential information, such as course materials, student data, and other sensitive resources. This can have serious implications for the privacy and security of the affected Moodle installation.

To mitigate the risk, it is recommended to upgrade to the patched versions of Moodle (2.1.2 or 2.0.5) that include the necessary fixes. Additionally, keeping the Moodle installation up to date with the latest security updates is crucial.

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.0.0, < 2.0.5 2.0.5
    composer require moodle/moodle:2.0.5
  • >= 2.1, < 2.1.2 2.1.2
    composer require moodle/moodle:2.1.2

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