CVE-2012-1157: Moodle default permissions too permissive

moodle/moodle Updated 02 Oct 2025

Summary

23/04/2022
Yes i
Moderate
4.3

CVE-2012-1157: Moodle default permissions too permissive. Affects moodle/moodle across 4 version ranges.

< 1.9.17 >= 2.0, < 2.0.8 >= 2.1, < 2.1.5 >= 2.2, < 2.2.2

Fixed in 4 releases; the minimum fixed version depends 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 worldwide. It provides a platform for creating and managing online courses, allowing educators to deliver content and interact with students. Moodle is widely adopted due to its flexibility, extensibility, and robust feature set. However, prior to version 2.2.2, Moodle had a default configuration that allowed all repositories to be viewable by all authenticated users. This default setting posed a security risk as it granted unauthorized access to sensitive course materials and potentially confidential information.

Vulnerability Detail

The vulnerability in Moodle stemmed from its default settings, which allowed all repositories to be accessible by any authenticated user. This meant that any user with a valid account could view and access course materials, even if they were not enrolled in the respective courses. This vulnerability could lead to unauthorized access to sensitive information, compromise the privacy of course content, and potentially expose confidential data. The impact of this vulnerability is moderate, with a CVSS score of 4.3.

How To Fix

Fixed versions by release line

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

  • < 1.9.17 1.9.17
    composer require moodle/moodle:1.9.17
  • >= 2.0, < 2.0.8 2.0.8
    composer require moodle/moodle:2.0.8
  • >= 2.1, < 2.1.5 2.1.5
    composer require moodle/moodle:2.1.5
  • >= 2.2, < 2.2.2 2.2.2
    composer require moodle/moodle:2.2.2

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

Workaround

As a temporary workaround, administrators can manually adjust repository permissions to restrict access to enrolled users only. This can be done by navigating to the repository settings in the Moodle administration panel and configuring the appropriate access controls. However, this workaround is not recommended as it requires manual intervention and may be prone to human error. Upgrading to the latest version of Moodle is the recommended long-term solution.

Conclusion

The default permissions vulnerability in Moodle allowed all repositories to be viewable by all authenticated users, potentially compromising the privacy of course content and exposing confidential information. Upgrading to Moodle version 2.2.2 or later and reviewing repository permissions are crucial steps to mitigate this vulnerability. Administrators should ensure they are running the latest version of Moodle and have implemented appropriate access controls. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

Moodle is an open-source learning management system (LMS) used by educational institutions to create and manage online courses.

The vulnerability allows unauthorized users to access and view course materials, potentially compromising the privacy of course content and exposing confidential information.

To fix this vulnerability, upgrade to Moodle version 2.2.2 or later and review repository permissions to ensure access is restricted to enrolled users only.

A temporary workaround is to manually adjust repository permissions to restrict access to enrolled users only. However, upgrading to the latest version of Moodle is the recommended solution.

The CVSS score of this vulnerability is 4.3, indicating a moderate impact.

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.

  • < 1.9.17 1.9.17
    composer require moodle/moodle:1.9.17
  • >= 2.0, < 2.0.8 2.0.8
    composer require moodle/moodle:2.0.8
  • >= 2.1, < 2.1.5 2.1.5
    composer require moodle/moodle:2.1.5
  • >= 2.2, < 2.2.2 2.2.2
    composer require moodle/moodle:2.2.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