CSRF Risk in Admin Management of Analytics Models in Moodle

moodle Updated 02 Oct 2025

Summary

19/07/2024
Yes i
High
Not published

CVE-2024-34008: moodle: CSRF risk in analytics management of models. Affects moodle versions >= 4.0.0, < 4.3.4. Fixed in 4.3.4. How to fix ↓

Also tracked for

The same CVE-2024-34008 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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 wide range of features for educators and learners, including course management, content creation, and assessment tools. However, a vulnerability has been identified in the admin management of analytics models in Moodle, which exposes the system to a CSRF risk.

Vulnerability Detail

The vulnerability arises from the lack of a necessary token in the actions performed in the admin management of analytics models. This omission opens up the system to cross-site request forgery (CSRF) attacks, where an attacker can trick an authenticated user into unknowingly performing malicious actions on their behalf. This can lead to unauthorized access, data manipulation, or other harmful consequences. The severity of this vulnerability is classified as high, with a CVSS v3 score of 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

How To Fix

Minimum fixed version

4.3.4

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, administrators can mitigate the risk by implementing additional security measures, such as enforcing strong authentication mechanisms, regularly monitoring system logs for suspicious activities, and educating users about potential CSRF attacks.

Conclusion

The CSRF vulnerability in the admin management of analytics models in Moodle exposes the system to potential unauthorized access and data manipulation. It is crucial to update Moodle to the recommended versions that include the necessary token to prevent CSRF risks. Additionally, administrators should implement additional security measures to mitigate the risk of CSRF attacks.

See every vulnerability recorded for moodle →

Share this vulnerability

FAQ

Moodle is an open-source learning management system (LMS) used for creating and delivering online courses. It provides a wide range of features for educators and learners, including course management, content creation, and assessment tools.

CSRF (Cross-Site Request Forgery) is an attack that tricks an authenticated user into unknowingly performing malicious actions on their behalf. It occurs when a malicious website or application sends a request to a target website where the user is authenticated, leading to unauthorized actions.

The CSRF vulnerability in the admin management of analytics models in Moodle can lead to unauthorized access, data manipulation, or other malicious actions performed by an attacker on behalf of an authenticated user.

To fix this vulnerability, it is recommended to update Moodle to the latest version (4.3.4, 4.1.10, or 4.2.7) that includes the necessary token to prevent CSRF risks in the admin management of analytics models.

While there is no specific workaround mentioned for this vulnerability, administrators can mitigate the risk by implementing additional security measures, such as enforcing strong authentication mechanisms and regularly monitoring system logs for suspicious activities.

Related vulnerabilities

Recent vulnerabilities recorded for moodle.

How To Fix

Minimum fixed version

4.3.4

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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