CVE-2015-5338: Moodle multiple cross-site request forgery (CSRF) vulnerabilities

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
High
8.8

CVE-2015-5338: Moodle multiple cross-site request forgery (CSRF) vulnerabilities. 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 platform for educators to deliver content, interact with students, and assess their progress. Moodle is widely adopted and offers various modules to enhance the learning experience. However, it is susceptible to multiple cross-site request forgery (CSRF) vulnerabilities.

Vulnerability Detail

The identified vulnerabilities exist in the lesson module of 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. These vulnerabilities allow remote attackers to hijack the authentication of arbitrary users for requests to specific endpoints. The affected endpoints are 'mod/lesson/mediafile.php' and 'mod/lesson/view.php'. Exploiting these vulnerabilities could lead to unauthorized access and potential misuse of user accounts and data.

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

As a temporary workaround, users can implement additional security measures such as enforcing strong passwords, enabling two-factor authentication, and regularly monitoring user activity for any suspicious behavior. However, these workarounds do not address the root cause of the vulnerabilities and should be considered temporary solutions until the software is updated.

Conclusion

The identified vulnerabilities in Moodle's lesson module pose a significant security risk, allowing attackers to hijack user authentication and potentially compromise user accounts and data. It is crucial for Moodle administrators to promptly upgrade to the fixed versions to ensure the security of their Moodle instances. For further support and assistance in 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.

Cross-site request forgery (CSRF) vulnerabilities allow attackers to trick authenticated users into performing unintended actions on a web application.

Remote attackers can exploit these vulnerabilities by tricking users into visiting malicious websites or clicking on specially crafted links, leading to unauthorized actions being performed on their behalf.

Exploiting these vulnerabilities can result in unauthorized access to user accounts, data leakage, and potential misuse of the affected Moodle instance.

There have been no specific reports of these vulnerabilities being actively exploited in the wild. However, it is crucial to apply the recommended fixes to mitigate any potential risks.

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