Auth bypass in Moodle
CVE-2020-14321
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.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.160, 97.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Moodle — versions 3.9.0
- 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
Weakness classification (CWE)
Public exploits and proof-of-concept code
Metasploit modules
3 public repositories with exploit or proof-of-concept code for this CVE:
- HoangKien1020/CVE-2020-14321 (44 stars, last pushed 2021-08-01): Course enrolments allowed privilege escalation from teacher role into manager role to RCE
- lanzt/CVE-2020-14321 (22 stars, last pushed 2021-12-03): Python script to exploit CVE-2020-14321 - Moodle 3.9 - Course enrollments allowed privilege escalation from teacher role into manager role to RCE.
- f0ns1/CVE-2020-14321-modified-exploit (2 stars, last pushed 2022-02-01): Modified Moodle exploit for privilege escalation (Dorvack)
Also mentioned in 8 other repositories (0xT11/CVE-POC, 3mrgnc3/Moodle_3.9_RCE_AutoPwn, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- moodle.org/mod/forum/discuss.php (Patch, Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.