CVE-2024-34008 — Moodle CSRF risk in moodle/moodle — CVE Details
Moodle CSRF risk in analytics management of models
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.61%). Schedule for your next planned update.
Does your project use an affected moodle/moodle version?
Paste your composer.lock to check it for CVE-2024-34008 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Actions in the admin management of analytics models did not include the necessary token to prevent a CSRF risk.
Advisory Timeline
- First published May 31, 2024 (909 days ago).
- Last revised May 15, 2025 — 349 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "moodle/moodle:^4.3.4"
composer require "moodle/moodle:^4.1.10"
composer require "moodle/moodle:^4.2.7"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| moodle/moodle Packagist · Affected: v4.3.0, v4.3.1, v4.3.2, v4.3.3 | 4.3.4 |
| moodle/moodle Packagist · Affected: v2.3.10, v2.3.11, v2.3.4, v2.3.5 (+338 more) | 4.1.10 |
| moodle/moodle Packagist · Affected: v4.2.0, v4.2.1, v4.2.2, v4.2.3 (+3 more) | 4.2.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-352Cross-Site Request Forgery (CSRF)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-34008ADVISORY
- https://github.com/moodle/moodle/commit/498a766263743ee649f6874e440a94517a077e2eWEB
- https://github.com/moodle/moodlePACKAGE
- https://moodle.org/mod/forum/discuss.php?d=458397WEB
- https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-81059WEB
Frequently Asked Questions
- What is CVE-2024-34008?
- Moodle CSRF risk in analytics management of models. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2024-34008?
- CVE-2024-34008 affects moodle/moodle. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-34008 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 43.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2021-36394CRITICAL
Moodle Session Fixation vulnerability
- CVE-2022-40314CRITICAL
Moodle remote code execution
- CVE-2022-30599CRITICAL
SQL injection in moodle
- CVE-2021-3943CRITICAL
Moodle vulnerable to RCE via unsafe deserialization
- CVE-2025-26525HIGH
Moodle has an arbitrary file read risk through pdfTeX
- CVE-2025-26530HIGH
Moodle allows reflected XSS via question bank filter
- CVE-2025-67853HIGH
Moodle Affected by Improper Restriction of Excessive Authentication Attempts
- CVE-2010-1615HIGH
Moodle vulnerable to SQL injection