Moodle
Don't miss out!
Thousands of developers use stack.watch to stay informed.Get an email whenever new security vulnerabilities are reported in Moodle.
By the Year
In 2026 there have been 14 vulnerabilities in Moodle with an average score of 6.5 out of ten. Last year, in 2025 Moodle had 36 security vulnerabilities published. Right now, Moodle is on track to have less security vulnerabilities in 2026 than it did last year. However, the average CVE base score of the vulnerabilities in 2026 is greater by 0.88.
| Year | Vulnerabilities | Average Score |
|---|---|---|
| 2026 | 14 | 6.47 |
| 2025 | 36 | 5.59 |
| 2024 | 54 | 6.01 |
| 2023 | 46 | 6.42 |
| 2022 | 48 | 6.47 |
| 2021 | 21 | 7.42 |
| 2020 | 20 | 6.68 |
| 2019 | 27 | 5.98 |
| 2018 | 17 | 6.59 |
It may take a day or so for new Moodle vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.
Recent Moodle Security Vulnerabilities
Moodle LMS 4.0 XSS in course/search.php via search param
CVE-2022-50943
6.1 - Medium
- May 10, 2026
Moodle LMS 4.0 contains a cross-site scripting vulnerability that allows unauthenticated attackers to inject malicious scripts by submitting payloads through the search parameter. Attackers can inject JavaScript code via the search field in course/search.php to execute arbitrary scripts in users' browsers and steal session cookies.
XSS
Moodle TeX Editor DoS via Mimetex pre-<4.5.9/5.0.5/5.1.2
CVE-2026-26047
6.5 - Medium
- February 21, 2026
A denial-of-service vulnerability was identified in Moodles TeX formula editor. When rendering TeX content using mimetex, insufficient execution time limits could allow specially crafted formulas to consume excessive server resources. An authenticated user could abuse this behavior to degrade performance or cause service interruption.
Resource Exhaustion
Command Injection via Moodle TeX Filter (v<4.5.9, <5.0.5, <5.1.2)
CVE-2026-26046
7.2 - High
- February 21, 2026
A vulnerability was found in a Moodle TeX filter administrative setting where insufficient sanitization of configuration input could allow command injection. On sites where the TeX filter is enabled and ImageMagick is installed, a maliciously crafted setting value entered by an administrator could result in unintended system command execution. While exploitation requires administrative privileges, successful compromise could affect the entire Moodle server.
Shell injection
Moodle Backup Restore RCE in v4.5.8 and earlier; fixed v4.5.9,5.0.5,5.1.2
CVE-2026-26045
7.2 - High
- February 21, 2026
A flaw was identified in Moodles backup restore functionality where specially crafted backup files were not properly validated during processing. If a malicious backup file is restored, it could lead to unintended execution of server-side code. Since restore capabilities are typically available to privileged users, exploitation requires authenticated access. Successful exploitation could result in full compromise of the Moodle server.
Code Injection
Moodle Anonymous Assignment URLs Leak User IDs
CVE-2025-67857
4.3 - Medium
- February 03, 2026
A flaw was found in moodle. During anonymous assignment submissions, user identifiers were inadvertently exposed in URLs. This data exposure allows unauthorized viewers to see internal user IDs, compromising the intended anonymity and potentially leading to information disclosure.
Insertion of Sensitive Information Into Sent Data
Moodle Badge Awarding RBAC Bypass Allows Privilege Escalation
CVE-2025-67856
5.4 - Medium
- February 03, 2026
A flaw was found in Moodle. An authorization logic flaw, specifically due to incomplete role checks during the badge awarding process, allowed badges to be granted without proper verification. This could enable unauthorized users to obtain badges they are not entitled to, potentially leading to privilege escalation or unauthorized access to certain features.
AuthZ
Moodle Reflected XSS in Policy Tool Return URL
CVE-2025-67855
5.4 - Medium
- February 03, 2026
A flaw was found in mooodle. A remote attacker could exploit a reflected Cross-Site Scripting (XSS) vulnerability in the policy tool return URL. This vulnerability arises from insufficient sanitization of URL parameters, allowing attackers to inject malicious scripts through specially crafted links. Successful exploitation could lead to information disclosure or arbitrary client-side script execution within the user's browser.
XSS
Moodle Brute-Force via Email Confirmation Rate Limiting
CVE-2025-67853
7.5 - High
- February 03, 2026
A flaw was found in Moodle. A remote attacker could exploit a lack of proper rate limiting in the confirmation email service. This vulnerability allows attackers to more easily enumerate or guess user credentials, facilitating brute-force attacks against user accounts.
Improper Restriction of Excessive Authentication Attempts
Moodle OAuth Open Redirect Allows Phishing
CVE-2025-67852
3.5 - Low
- February 03, 2026
A flaw was found in Moodle. An open redirect vulnerability in the OAuth login flow allows a remote attacker to redirect users to attacker-controlled pages after they have successfully authenticated. This occurs due to insufficient validation of redirect parameters, which could lead to phishing attacks or information disclosure.
Open Redirect
Moodle Formula Injection via Unescaped Export (CVE-2025-67851)
CVE-2025-67851
6.1 - Medium
- February 03, 2026
A flaw was found in moodle. This formula injection vulnerability occurs when data fields are exported without proper escaping. A remote attacker could exploit this by providing malicious data that, when exported and opened in a spreadsheet, allows arbitrary formulas to execute. This can lead to compromised data integrity and unintended operations within the spreadsheet.
CSV Injection
Moodle XSS in Formula Editor Allows Remote Code Exec
CVE-2025-67850
7.3 - High
- February 03, 2026
A flaw was found in moodle. This vulnerability, known as Cross-Site Scripting (XSS), occurs due to insufficient checks on user-provided data in the formula editor's arithmetic expression fields. A remote attacker could inject malicious code into these fields. When other users view these expressions, the malicious code would execute in their web browsers, potentially compromising their data or leading to unauthorized actions.
XSS
Moodle LTI Auth Bypass for Suspended Users
CVE-2025-67848
8.1 - High
- February 03, 2026
A flaw was found in Moodle. This authentication bypass vulnerability allows suspended users to authenticate through the Learning Tools Interoperability (LTI) Provider. The issue arises from the LTI authentication handlers failing to enforce the user's suspension status, enabling unauthorized access to the system. This can lead to information disclosure or other unauthorized actions by users who should be restricted.
Improper Handling of Insufficient Permissions or Privileges
Moodle Restore RCE before 5.1.1 (moodle.core.restore)
CVE-2025-67847
8.8 - High
- January 23, 2026
A flaw was found in Moodle. An attacker with access to the restore interface could trigger server-side execution of arbitrary code. This is due to insufficient validation of restore input, which leads to unintended interpretation by core restore routines. Successful exploitation could result in a full compromise of the Moodle application.
Code Injection
Moodle 3.10.3 XSS in Calendar Event Subtitle
CVE-2021-47857
7.2 - High
- January 21, 2026
Moodle 3.10.3 contains a persistent cross-site scripting vulnerability in the calendar event subtitle field that allows attackers to inject malicious scripts. Attackers can craft a calendar event with malicious JavaScript in the subtitle track label to execute arbitrary code when users view the event.
XSS
Moodle Timed Assignment BYPASS: Students Gain Extra Time
CVE-2025-62401
5.4 - Medium
- October 23, 2025
An issue in Moodles timed assignment feature allowed students to bypass the time restriction, potentially giving them more time than allowed to complete an assessment.
AuthZ
Moodle Permission Bypass in Cohort Search Web Service
CVE-2025-62395
4.3 - Medium
- October 23, 2025
A flaw in the cohort search web service allowed users with permissions in lower contexts to access cohort information from the system context, revealing restricted administrative data.
Authorization
Moodle Hidden Group Info Disclosure via Calendar Event Permissions
CVE-2025-62400
4.3 - Medium
- October 23, 2025
Moodle exposed the names of hidden groups to users who had permission to create calendar events but not to view hidden groups. This could reveal private or restricted group information.
Information Disclosure
Moodle Mobile/Web Auth Brute-Force
CVE-2025-62399
7.5 - High
- October 23, 2025
Moodles mobile and web service authentication endpoints did not sufficiently restrict repeated password attempts, making them susceptible to brute-force attacks.
Improper Restriction of Excessive Authentication Attempts
Moodle Authentication flaw allows MFA bypass for valid users
CVE-2025-62398
5.4 - Medium
- October 23, 2025
A serious authentication flaw allowed attackers with valid credentials to bypass multi-factor authentication under certain conditions, potentially compromising user accounts.
authentification
Moodle Router response to invalid course IDs discloses valid IDs
CVE-2025-62397
5.3 - Medium
- October 23, 2025
The routers inconsistent response to invalid course IDs allowed attackers to infer which course IDs exist, potentially aiding reconnaissance.
Generation of Error Message Containing Sensitive Information
Moodle Router Error Handling Exposes Dir Listings (CVE202562396)
CVE-2025-62396
5.3 - Medium
- October 23, 2025
An error-handling issue in the Moodle router (r.php) could cause the application to display internal directory listings when specific HTTP headers were not properly configured.
Exposure of Information Through Directory Listing
Moodle Enrolment Check Bypass on Quiz Notifs
CVE-2025-62394
4.3 - Medium
- October 23, 2025
Moodle failed to verify enrolment status correctly when sending quiz notifications. As a result, suspended or inactive users might receive quiz-related messages, leaking limited course information.
AuthZ
Moodle Auth Bypass in Course Overview Output
CVE-2025-62393
4.3 - Medium
- October 23, 2025
A flaw was found in the course overview output function where user access permissions were not fully enforced. This could allow unauthorized users to view information about courses they should not have access to, potentially exposing limited course details.
Authorization
SessFix in Moodle 3.x-3.11.18 via unauth sesskey in OAuth2
CVE-2025-53021
- June 24, 2025
A session fixation vulnerability in Moodle 3.x through 3.11.18 allows unauthenticated attackers to hijack user sessions via the sesskey parameter. The sesskey can be obtained without authentication and reused within the OAuth2 login flow, resulting in the victim's session being linked to the attacker's. Successful exploitation results in full account takeover. According to the Moodle Releases page, "Bug fixes for security issues in 3.11.x ended 11 December 2023." NOTE: This vulnerability only affects products that are no longer supported by the maintainer.
Session Fixation
Moodle: Unauth. API Stack Trace Disclosure (CVE-2025-32044)
CVE-2025-32044
- April 25, 2025
A flaw has been identified in Moodle where, on certain sites, unauthenticated users could retrieve sensitive user dataincluding names, contact information, and hashed passwordsvia stack traces returned by specific API calls. Sites with PHP configured with zend.exception_ignore_args = 1 in the php.ini file are not affected by this vulnerability.
Moodle Brickfield CSRF in Analysis Request Action
CVE-2025-3638
- April 25, 2025
A flaw was found in Moodle. The analysis request action in the Brickfield tool did not include the necessary token to prevent a Cross-site request forgery (CSRF) risk.
Moodle Auth Bypass: Unauthorized Cohort Data Access
CVE-2025-3647
- April 25, 2025
A flaw was discovered in Moodle. Additional checks were required to ensure that users can only access cohort data they are authorized to retrieve.
Moodle Messaging WS Info Disclosure via Cap Check Bypass
CVE-2025-3645
- April 25, 2025
A flaw was found in Moodle. Insufficient capability checks in a messaging web service allowed users to view other users' names and online statuses.
Moodle RBAC Bypass: Unauthorized Deletion of Course Sections
CVE-2025-3644
- April 25, 2025
A flaw was found in Moodle. Additional checks were required to prevent users from deleting course sections they did not have permission to modify.
Moodle Policy Tool Return URL Reflected XSS
CVE-2025-3643
- April 25, 2025
A flaw was found in Moodle. The return URL in the policy tool required additional sanitizing to prevent a reflected Cross-site scripting (XSS) risk.
Moodle RCE via EQUELLA Repository for Teachers/Managers
CVE-2025-3642
- April 25, 2025
A flaw was found in Moodle. A remote code execution risk was identified in the Moodle LMS EQUELLA repository. By default, this was only available to teachers and managers on sites with the EQUELLA repository enabled.
Moodle Dropbox RCE (CVE-2025-3641)
CVE-2025-3641
- April 25, 2025
A flaw was found in Moodle. A remote code execution risk was identified in the Moodle LMS Dropbox repository. By default, this was only available to teachers and managers on sites with the Dropbox repository enabled.
Moodle Access Control Bypass: User Data Leak via Capability Checks
CVE-2025-3640
- April 25, 2025
A flaw was found in Moodle. Insufficient capability checks made it possible for a user enrolled in a course to access some details, such as the full name and profile image URL, of other users they did not have permission to access.
Moodle mod_data CSRF token leak via URLs on edit/delete pages
CVE-2025-3637
- April 25, 2025
A security vulnerability was found in Moodle where confidential information that prevents cross-site request forgery (CSRF) attacks was shared publicly through the site's URL. This vulnerability occurred specifically on two types of pages within the mod_data module: edit and delete pages.
Moodle RSS Feed Auth Bypass via Cap Check Flaw
CVE-2025-3636
- April 25, 2025
A flaw was found in Moodle. This vulnerability allows unauthorized users to access and view RSS feeds due to insufficient capability checks.
Moodle CSRF Enables Tour Duplication Without Auth
CVE-2025-3635
- April 25, 2025
A security vulnerability was discovered in Moodle that allows anyone to duplicate existing tours without needing to log in due to a lack of protection against cross-site request forgery (CSRF) attacks.
Moodle Assignment Submission De-anonymization via Search
CVE-2025-3628
- April 25, 2025
A flaw has was found in Moodle where anonymous assignment submissions can be de-anonymized via search, revealing student identities.
Moodle 2FA Bypass Exposes Sensitive Student Info
CVE-2025-3627
- April 25, 2025
A security vulnerability was discovered in Moodle that allows some users to access sensitive information about other students before they finish verifying their identities using two-factor authentication (2FA).
Moodle 2FA Bypass via Sensitive Data Leakage
CVE-2025-3625
- April 25, 2025
A security vulnerability was discovered in Moodle that can allow hackers to gain access to sensitive information about students and prevent them from logging into their accounts, even after they had completed two-factor authentication (2FA).
Moodle Grade Report PLE via missing capability checks
CVE-2025-32045
- April 25, 2025
A flaw has been identified in Moodle where insufficient capability checks in certain grade reports allowed users without the necessary permissions to access hidden grades.
Moodle Enrollment Bypass: Self-Enrollment Skips 2FA
CVE-2025-3634
- April 25, 2025
A security vulnerability was discovered in Moodle that allows students to enroll themselves in courses without completing all the necessary safety checks. Specifically, users can sign up for courses prematurely, even if they haven't finished two-step verification processes.
SQLi in Moodle Course Search Module List Filter
CVE-2025-26533
9.8 - Critical
- February 24, 2025
An SQL injection risk was identified in the module list filter within course search.
Moodle ddimageortext XSS in DragandDrop onto Image question type
CVE-2025-26528
6.1 - Medium
- February 24, 2025
The drag-and-drop onto image (ddimageortext) question type required additional sanitizing to prevent a stored XSS risk.
Stored XSS via unsanitized Admin Live Log
CVE-2025-26529
6.1 - Medium
- February 24, 2025
Description information displayed in the site administration live log required additional sanitizing to prevent a stored XSS risk.
WordPress Tags Unintended Disclosure via Tag Search & Tags Block
CVE-2025-26527
- February 24, 2025
Tags not expected to be visible to a user could still be discovered by them via the tag search page or in the tags block.
Moodle Feedback SEGBM mode bypasses permission checks
CVE-2025-26526
- February 24, 2025
Separate Groups mode restrictions were not factored into permission checks before allowing viewing or deletion of responses in Feedback activities.
Arbitrary File Read via Insufficient Sanitizing in PDFTeX TeX Notation Filter
CVE-2025-26525
- February 24, 2025
Insufficient sanitizing in the TeX notation filter resulted in an arbitrary file read risk on sites where pdfTeX is available (such as those with TeX Live installed).
Glossary Entry Restore TrustText Failure (CVE-2025-26532)
CVE-2025-26532
4.3 - Medium
- February 24, 2025
Additional checks were required to ensure trusttext is applied (when enabled) to glossary entries being restored.
Reflected XSS in Question Bank Filter
CVE-2025-26530
6.1 - Medium
- February 24, 2025
The question bank filter required additional sanitizing to prevent a reflected XSS risk.
WordPress BadgeOS: Missing Capability Check Lets Users Disable Unowned Badges
CVE-2025-26531
5.3 - Medium
- February 24, 2025
Insufficient capability checks made it possible to disable badges a user does not have permission to access.