{"id":"CVE-2020-14321","published":"2022-08-16T00:00:00Z","modified":"2024-08-04T12:39:36Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.15993,"percentile":0.9698,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=407393","tags":[]}],"priority":{"score":24.4,"factors":[{"name":"EPSS percentile","points":19.4},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":3,"skipped":0,"earliest":"2020-07-26","earliestUrl":"https://github.com/HoangKien1020/CVE-2020-14321","repos":[{"name":"HoangKien1020/CVE-2020-14321","url":"https://github.com/HoangKien1020/CVE-2020-14321","stars":44,"created":"2020-07-26"},{"name":"lanzt/CVE-2020-14321","url":"https://github.com/lanzt/CVE-2020-14321","stars":22,"created":"2021-04-28"},{"name":"f0ns1/CVE-2020-14321-modified-exploit","url":"https://github.com/f0ns1/CVE-2020-14321-modified-exploit","stars":2,"created":"2022-02-01"}]},"metasploit":[{"name":"Moodle Teacher Enrollment Privilege Escalation to RCE","module":"exploit/multi/http/moodle_teacher_enrollment_priv_esc_to_rce","type":"exploit","disclosureDate":"2020-07-20","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/moodle_teacher_enrollment_priv_esc_to_rce.rb"}],"first":{"date":"2020-07-20","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/moodle_teacher_enrollment_priv_esc_to_rce.rb"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"Moodle","versions":["Moodle 3.9, 3.8 to 3.8.3, 3.7 to 3.7.6, 3.5 to 3.5.12 and earlier unsupported versions"]}],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.9.0-beta, <3.9.1",">=3.8.0-beta, <3.8.4",">=3.6.0-beta, <3.7.7","<3.5.13"],"patched":["3.9.1","3.8.4","3.7.7","3.5.13"],"from":["GHSA-9q29-jcjw-fw7h"],"provenance":"source"}],"summary":{"text":"The flaw lies in Moodle, an open-source learning management platform, where the authorisation logic for course roles was incorrect: teachers could assign the manager role to themselves within a course.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:45:15Z"},"euvd":{"id":"EUVD-2020-6471","exploited":false,"provenance":"source"}}