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

Most critical Moodle vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2019-380910.0 Critical2019-03-25Cross-site request forgery (CSRF)No
2CVE-2025-678569.8 Critical2026-02-03Incorrect authorizationNo
3CVE-2025-265339.8 Critical2025-02-24SQL injectionNo
4CVE-2024-339999.8 Critical2024-05-31Improper input validationNo
5CVE-2023-55509.8 Critical2023-11-09Code injectionNo
6CVE-2023-283339.8 Critical2023-03-23Code injectionNo
7CVE-2021-363929.8 Critical2023-03-06SQL injectionNo
8CVE-2021-363939.8 Critical2023-03-06SQL injectionNo
9CVE-2021-363949.8 Critical2023-03-06Code injectionNo
10CVE-2022-403149.8 Critical2022-09-30Insecure deserializationNo

Each Moodle CVE explained

1. CVE-2019-3809: Cross-site request forgery (CSRF)

  • CVSS 10.0 Critical
  • Published 2019-03-25
  • CWE-352
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).

NVD record for CVE-2019-3809 (opens in a new tab)

2. CVE-2025-67856: Incorrect authorization

  • CVSS 9.8 Critical
  • Published 2026-02-03
  • CWE-863
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.

NVD record for CVE-2025-67856 (opens in a new tab)

3. CVE-2025-26533: SQL injection

  • CVSS 9.8 Critical
  • Published 2025-02-24
  • CWE-89
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)

NVD record for CVE-2025-26533 (opens in a new tab)

4. CVE-2024-33999: Improper input validation

  • CVSS 9.8 Critical
  • Published 2024-05-31
  • CWE-20
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)

NVD record for CVE-2024-33999 (opens in a new tab)

5. CVE-2023-5550: Code injection

  • CVSS 9.8 Critical
  • Published 2023-11-09
  • CWE-94
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)

NVD record for CVE-2023-5550 (opens in a new tab)

6. CVE-2023-28333: Code injection

  • CVSS 9.8 Critical
  • Published 2023-03-23
  • CWE-94
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)

NVD record for CVE-2023-28333 (opens in a new tab)

7. CVE-2021-36392: SQL injection

  • CVSS 9.8 Critical
  • Published 2023-03-06
  • CWE-89
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)

NVD record for CVE-2021-36392 (opens in a new tab)

8. CVE-2021-36393: SQL injection

  • CVSS 9.8 Critical
  • Published 2023-03-06
  • CWE-89
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)

NVD record for CVE-2021-36393 (opens in a new tab)

9. CVE-2021-36394: Code injection

  • CVSS 9.8 Critical
  • Published 2023-03-06
  • CWE-384
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)

NVD record for CVE-2021-36394 (opens in a new tab)

10. CVE-2022-40314: Insecure deserialization

  • CVSS 9.8 Critical
  • Published 2022-09-30
  • CWE-502
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)

NVD record for CVE-2022-40314 (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.

Moodle release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
Moodle 5.3 (LTS)Oct 5, 2026Oct 1, 20295.3.0Supported
Moodle 5.2Apr 20, 2026Oct 4, 20275.2.4Supported
Moodle 5.1Oct 6, 2025Apr 19, 20275.1.8Supported
Moodle 5.0Apr 14, 2025Oct 5, 20265.0.11End of life
Moodle 4.5 (LTS)Oct 7, 2024Oct 4, 20274.5.15Supported
Moodle 4.4Apr 22, 2024Dec 8, 20254.4.12End of life
Moodle 4.3Oct 7, 2023Apr 21, 20254.3.12End of life
Moodle 4.2Apr 22, 2023Oct 7, 20244.2.11End 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

  1. Update the core, themes, plugins and extensions as soon as security releases appear.
  2. Remove plugins, themes and modules you do not use.
  3. Give users the minimum role they need and enable two-factor authentication for administrators.
  4. Keep debug and development modes off in production.
  5. Back up files and database before every update.
  6. 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.

Few stacks run Moodle alone. These guides cover the technologies it is most often deployed with.

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

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.