Broken access controlin the moodle/moodle package.
Weaponized: a Metasploit exploit is public.
In Moodle before 3.9.1, 3.8.4, 3.7.7 and 3.5.13, teachers of a course were able to assign themselves the manager role within that course.
- Upgrade moodle/moodle (Packagist) to 3.5.13, 3.7.7, 3.8.4, 3.9.1 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 17 Jun 2020CVE ID reserved by redhat.
- 20 Jul 2020Metasploit module: Moodle Teacher Enrollment Privilege Escalation to RCE.
- 26 Jul 2020First public proof of concept on GitHub.
- 16 Aug 2022Published in the CVE List.
- 4 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Metasploit).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other vulnerabilities in this package
Same weakness: Incorrect authorization
Patchminder. CVE-2020-14321: Broken access control in the moodle/moodle package. https://patchminder.com/cve/cve-2020-14321/ (accessed 5 December 2026).