CVE-2021-36393
CriticalMoodle SQL Injection vulnerability
Published Mar 6, 2023 · Updated Sep 8, 2026 · Also known as BIT-moodle-2021-36393, GHSA-f46j-r7q3-6cm2, UBUNTU-CVE-2021-36393
Key Facts
Patch immediately- CVE-2021-36393 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Moodle, moodle/moodle (composer).
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 52% probability of exploitation in the next 30 days.
- Fixed versions are available, including Moodle 3.10.5, Moodle 3.11.1, Moodle 3.9.8.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
52%
Higher than 98.9% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
None known
Get the full CVE-2021-36393 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses.
Affected Products
6 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| MoodleMoodle | >= 3.11, 3.10 to 3.10.4, 3.9 to 3.9.7 and earlier unsupported versions | 3.9.8 |
| moodle/moodlecomposer | >= 3.10.0-beta | 3.9.8 |
Patched Releases
Moodle
3.10.5, 3.11.1, 3.9.8
moodle/moodle
3.10.5, 3.11.1, 3.9.8
Timeline
Publicly disclosed
Mar 6, 2023
Last updated
Sep 8, 2026
Weakness Type
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- advisoryGHSA advisory
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-36393
- advisoryhttps://ubuntu.com/security/CVE-2021-36393
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2021-36393
- patchhttps://moodle.org/mod/forum/discuss.php?d=424798
FAQ
Common Questions.
In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses.
Affected: Moodle versions >= 3.11, 3.10 to 3.10.4, 3.9 to 3.9.7 and earlier unsupported versions; moodle/moodle (composer) versions >= 3.10.0-beta. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including Moodle 3.10.5, Moodle 3.11.1, Moodle 3.9.8.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2021-36393 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo