CVE-2021-36393: In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses.
CVE-2021-36393 is a critical-severity flaw (CVSS 9.8) affecting moodle. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 52.3% (top 1%) |
| CISA exploited list | No |
| Weakness | CWE-89 |
| Published | 2023-03-06 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: StackOverflowExcept1on/CVE-2021-36393 (4 stars)
- GitHub PoC: T0X1Cx/CVE-2021-36393-Exploit
- Exploit-DB: Moodle 3.10.1 - 'sort' Authenticated Blind Time-Based SQL Injection (SQLi)
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-36393?
moodle: upgrade to 3.9.8, 3.10.5, 3.11.1. Exact commands for each OS are on this page.
Is CVE-2021-36393 being exploited?
CVE-2021-36393 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-36393 affect?
CVE-2021-36393 affects moodle. Severity is critical (CVSS 9.8). In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses.
How urgent is CVE-2021-36393?
Priority 72/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2025-62399 HIGH 7.5 UPGRADE Moodle’s mobile and web service authentication endpoints did not sufficiently restrict repeated password attem
- CVE-2025-62397 MEDIUM 5.3 UPGRADE The router’s inconsistent response to invalid course IDs allowed attackers to infer which course IDs exist, po
- CVE-2025-62398 MEDIUM 5.4 UPGRADE A serious authentication flaw allowed attackers with valid credentials to bypass multi-factor authentication u
- CVE-2025-62401 MEDIUM 5.4 UPGRADE An issue in Moodle’s timed assignment feature allowed students to bypass the time restriction, potentially giv
- CVE-2025-62400 MEDIUM 4.3 UPGRADE Moodle exposed the names of hidden groups to users who had permission to create calendar events but not to vie