CVE-2014-7838: Moodle Forum Module Cross-Site Request Forgery (CSRF) Vulnerabilities

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
Not published

CVE-2014-7838: Moodle has multiple cross-site request forgery (CSRF) vulnerabilities in the Forum module. Affects moodle/moodle across 3 version ranges.

< 2.5.9 >= 2.6.0, < 2.6.6 >= 2.7.0, < 2.7.3

Fixed in 2.5.9, 2.6.6 or 2.7.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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 learning environments and engage with students. The Forum module in Moodle allows users to participate in discussions, share resources, and collaborate with others. This module is an integral part of the Moodle ecosystem and is widely used by educational institutions and organizations.

Vulnerability Detail

Multiple cross-site request forgery (CSRF) vulnerabilities have been discovered in the Forum module of Moodle. These vulnerabilities exist in versions prior to 2.4.11, 2.5.x before 2.5.9, 2.6.x before 2.6.6, and 2.7.x before 2.7.3. An attacker can exploit these vulnerabilities to hijack the authentication of arbitrary users and perform actions on their behalf. The vulnerabilities are present in various files, including deprecatedlib.php, forum.js, index.php, and lib.php. By tricking a user into visiting a malicious website or clicking on a specially crafted link, an attacker can execute unauthorized actions within the Forum module.

How To Fix

Fixed versions by release line

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

  • < 2.5.9 2.5.9
    composer require moodle/moodle:2.5.9
  • >= 2.6.0, < 2.6.6 2.6.6
    composer require moodle/moodle:2.6.6
  • >= 2.7.0, < 2.7.3 2.7.3
    composer require moodle/moodle:2.7.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 available for these vulnerabilities. It is crucial to apply the recommended patches or upgrade to the latest version of Moodle to mitigate the risk of CSRF attacks.

Conclusion

Multiple CSRF vulnerabilities have been identified in the Moodle Forum module, which can allow attackers to hijack user authentication and perform unauthorized actions. To mitigate these vulnerabilities, it is essential to upgrade Moodle to the latest patched version or apply the recommended patches. Upgrading will ensure the security of the Moodle installation and protect users from potential CSRF attacks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

Cross-Site Request Forgery (CSRF) is an attack that tricks a victim into performing unwanted actions on a web application in which they are authenticated. In the context of Moodle, CSRF vulnerabilities allow an attacker to hijack the authentication of users and perform actions on their behalf within the Forum module.

An attacker can exploit these vulnerabilities by tricking a user into visiting a malicious website or clicking on a specially crafted link. Once the user is authenticated in Moodle, the attacker can execute unauthorized actions within the Forum module.

The CSRF vulnerabilities in the Moodle Forum module can lead to various consequences, including unauthorized access to user accounts, posting malicious content, modifying forum settings, and potentially compromising the integrity and confidentiality of the Moodle installation.

No, only versions prior to 2.4.11, 2.5.x before 2.5.9, 2.6.x before 2.6.6, and 2.7.x before 2.7.3 are affected by these CSRF vulnerabilities. It is recommended to upgrade to the latest patched version to ensure the security of the Moodle installation.

At the time of this advisory, there are no known public exploits specifically targeting these CSRF vulnerabilities in the Moodle Forum module. However, it is crucial to apply the recommended patches or upgrade to the latest version to mitigate the risk of potential attacks.

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.5.9 2.5.9
    composer require moodle/moodle:2.5.9
  • >= 2.6.0, < 2.6.6 2.6.6
    composer require moodle/moodle:2.6.6
  • >= 2.7.0, < 2.7.3 2.7.3
    composer require moodle/moodle:2.7.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