VulnarioBlogMoodle vulnerabilities
Moodle Vulnerabilities: The 10 Most Critical Moodle Security Bugs (CVEs)
Moodle vulnerabilities are security flaws in Moodle that attackers can abuse to steal data, take over a server or interrupt a service. Moodle is the world's most widely used open-source learning management system. The National Vulnerability Database (NVD) lists 637 CVEs for Moodle, 20 of them rated critical, and 27 were published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.
This guide lists the 10 most critical Moodle security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Moodle security basics, the current end-of-life dates and a free way to be told about the next Moodle CVE as soon as it is published.
Key takeaways
- No Moodle CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
- 20 Moodle CVEs are rated critical (CVSS v3), and 27 new ones were published in the last 12 months.
- The newest CVE in this guide is CVE-2025-67856, published Feb 3, 2026.
- Supported Moodle releases today (per endoflife.date): 5.3, 5.2, 5.1, 4.5. Releases not on the list are past their announced end of life.
- You can monitor Moodle for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.
How we ranked these Moodle CVEs
We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.
Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.
The 10 most critical Moodle CVEs at a glance
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2019-3809 | 10.0 Critical | 2019-03-25 | Cross-site request forgery (CSRF) | No |
| 2 | CVE-2025-67856 | 9.8 Critical | 2026-02-03 | Incorrect authorization | No |
| 3 | CVE-2025-26533 | 9.8 Critical | 2025-02-24 | SQL injection | No |
| 4 | CVE-2024-33999 | 9.8 Critical | 2024-05-31 | Improper input validation | No |
| 5 | CVE-2023-5550 | 9.8 Critical | 2023-11-09 | Code injection | No |
| 6 | CVE-2023-28333 | 9.8 Critical | 2023-03-23 | Code injection | No |
| 7 | CVE-2021-36392 | 9.8 Critical | 2023-03-06 | SQL injection | No |
| 8 | CVE-2021-36393 | 9.8 Critical | 2023-03-06 | SQL injection | No |
| 9 | CVE-2021-36394 | 9.8 Critical | 2023-03-06 | Code injection | No |
| 10 | CVE-2022-40314 | 9.8 Critical | 2022-09-30 | Insecure deserialization | No |
Each Moodle CVE explained
1. CVE-2019-3809: Cross-site request forgery (CSRF)
- What NVD says
- A flaw was found in Moodle versions 3.1 to 3.1.15 and earlier unsupported versions. The mybackpack functionality allowed setting the URL of badges, when it should be restricted to the Mozilla Open Badges backpack URL. This resulted in the possibility of blind SSRF via requests made by the page.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 3.1.0 through 3.1.15
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
2. CVE-2025-67856: Incorrect authorization
- What NVD says
- 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.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 4.1.22; 4.4.0 to before 4.4.12; 4.5.0 to before 4.5.8; 5.0.0 to before 5.0.4
- What to do
- Upgrade to the fixed release for your branch (4.1.22, 4.4.12, 4.5.8) or a later one, then restart the service.
3. CVE-2025-26533: SQL injection
- What NVD says
- An SQL injection risk was identified in the module list filter within course search.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 4.1.0 to before 4.1.16; 4.3.0 to before 4.3.10; 4.4.0 to before 4.4.6; 4.5.0 to before 4.5.2
- What to do
- Upgrade to the fixed release for your branch (4.1.16, 4.3.10, 4.4.6) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
4. CVE-2024-33999: Improper input validation
- What NVD says
- The referrer URL used by MFA required additional sanitizing, rather than being used directly.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 4.3.0 to before 4.3.4
- What to do
- Upgrade to 4.3.4 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
5. CVE-2023-5550: Code injection
- What NVD says
- In a shared hosting environment that has been misconfigured to allow access to other users' content, a Moodle user who also has direct access to the web server outside of the Moodle webroot could utilise a local file include to achieve remote code execution.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 3.9.24; 3.11.0 to before 3.11.17; 4.0.0 to before 4.0.11; 4.1.0 to before 4.1.6
- What to do
- Upgrade to the fixed release for your branch (3.9.24, 3.11.17, 4.0.11) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
6. CVE-2023-28333: Code injection
- What NVD says
- The Mustache pix helper contained a potential Mustache injection risk if combined with user input (note: This did not appear to be implemented/exploitable anywhere in the core Moodle LMS).
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- after 3.9.0 to before 3.9.20; after 3.11.0 to before 3.11.13; after 4.0.0 to before 4.0.7; 3.9.0
- What to do
- Upgrade to the fixed release for your branch (3.9.20, 3.11.13, 4.0.7) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
7. CVE-2021-36392: SQL injection
- What NVD says
- In Moodle, an SQL injection risk was identified in the library fetching a user's enrolled courses.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 3.9.8; 3.10.0 to before 3.10.5; 3.11.0 to before 3.11.1
- What to do
- Upgrade to the fixed release for your branch (3.9.8, 3.10.5, 3.11.1) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
8. CVE-2021-36393: SQL injection
- What NVD says
- In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 3.9.8; 3.10.0 to before 3.10.5; 3.11.0 to before 3.11.1
- What to do
- Upgrade to the fixed release for your branch (3.9.8, 3.10.5, 3.11.1) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
9. CVE-2021-36394: Code injection
- What NVD says
- In Moodle, a remote code execution risk was identified in the Shibboleth authentication plugin.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 3.9.8; 3.10.0 to before 3.10.5; 3.11.0 to before 3.11.1
- What to do
- Upgrade to the fixed release for your branch (3.9.8, 3.10.5, 3.11.1) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
10. CVE-2022-40314: Insecure deserialization
- What NVD says
- A remote code execution risk when restoring backup files originating from Moodle 1.9 was identified.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 3.9 to before 3.9.17; 3.11 to before 3.11.10; 4.0 to before 4.0.4
- What to do
- Upgrade to the fixed release for your branch (3.9.17, 3.11.10, 4.0.4) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
Moodle end of life: which versions still get security fixes
Running a release that still receives security fixes is the most effective way to avoid Moodle vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported Moodle releases are 5.3, 5.2, 5.1, 4.5.
| Release | Released | End of life | Latest | Status |
|---|---|---|---|---|
| Moodle 5.3 (LTS) | Oct 5, 2026 | Oct 1, 2029 | 5.3.0 | Supported |
| Moodle 5.2 | Apr 20, 2026 | Oct 4, 2027 | 5.2.4 | Supported |
| Moodle 5.1 | Oct 6, 2025 | Apr 19, 2027 | 5.1.8 | Supported |
| Moodle 5.0 | Apr 14, 2025 | Oct 5, 2026 | 5.0.11 | End of life |
| Moodle 4.5 (LTS) | Oct 7, 2024 | Oct 4, 2027 | 4.5.15 | Supported |
| Moodle 4.4 | Apr 22, 2024 | Dec 8, 2025 | 4.4.12 | End of life |
| Moodle 4.3 | Oct 7, 2023 | Apr 21, 2025 | 4.3.12 | End of life |
| Moodle 4.2 | Apr 22, 2023 | Oct 7, 2024 | 4.2.11 | End of life |
Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.
Moodle security checklist
- Update the core, themes, plugins and extensions as soon as security releases appear.
- Remove plugins, themes and modules you do not use.
- Give users the minimum role they need and enable two-factor authentication for administrators.
- Keep debug and development modes off in production.
- Back up files and database before every update.
- Put a web application firewall and rate limiting in front of login pages.
Where you run Moodle matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating Moodle: on most plans the operating system and applications are yours to patch unless the plan says otherwise.
Your stack is bigger than Moodle. A flaw anywhere in the chain can be the way in, so also review our guides to PHP vulnerabilities, MySQL vulnerabilities and PostgreSQL vulnerabilities.
How to get alerted about new Moodle vulnerabilities
NVD received 27 new Moodle CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:
- Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
- Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
- Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.
Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Moodle and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.
- Free: all technologies, alerts grouped at most every 12 hours.
- Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.
Related security guides
Few stacks run Moodle alone. These guides cover the technologies it is most often deployed with.
- PHP vulnerabilities: PHP is the server-side language behind WordPress and most of the web.
- MySQL vulnerabilities: MySQL is the world's most widely used open-source relational database.
- PostgreSQL vulnerabilities: PostgreSQL is a powerful open-source object-relational database.
- Angular vulnerabilities: Angular is Google's TypeScript web application framework (AngularJS is its legacy predecessor).
- Apache Struts vulnerabilities: Apache Struts is a Java web application framework, known for the 2017 Equifax breach.
- Django vulnerabilities: Django is a high-level Python web framework.
- FastAPI vulnerabilities: FastAPI is a modern Python web framework for building APIs.
- Flask vulnerabilities: Flask is a lightweight Python web framework.
Frequently asked questions about Moodle vulnerabilities
What are the most critical Moodle vulnerabilities?
Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Moodle CVEs include CVE-2019-3809 (CVSS 10.0), CVE-2025-67856 (CVSS 9.8), CVE-2025-26533 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.
Have Moodle vulnerabilities been exploited in real attacks?
For the Moodle product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep Moodle patched.
How many vulnerabilities does Moodle have?
As of Nov 3, 2026 the National Vulnerability Database lists 637 CVEs for Moodle, with 20 rated critical by CVSS v3. 27 were published in the previous twelve months.
Which Moodle versions are still supported?
As of Nov 3, 2026, endoflife.date lists these Moodle releases as supported: 5.3, 5.2, 5.1, 4.5. Releases that are not listed are past their announced end of life.
How can I get alerted when a new Moodle CVE is published?
Add Moodle to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Moodle and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.
Is Moodle secure?
Moodle is as secure as its patch level. NVD published 27 new Moodle CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.
What is CVE-2019-3809?
CVE-2019-3809 is a critical Moodle vulnerability with a CVSS score of 10.0, published Mar 25, 2019. A flaw was found in Moodle versions 3.1 to 3.1.15 and earlier unsupported versions. The mybackpack functionality allowed setting the URL of badges, when it should be restricted to the Mozilla Open Badges backpack URL. This resulted in the possibility of blind SSRF via requests made by the page.
Sources
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
- endoflife.date: Moodle (opens in a new tab), release and support dates, checked Nov 3, 2026.
This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.