Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Moodle | 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 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | moodle | No fix yet | — |
| Ubuntu Pro 16.04 LTS | moodle | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Moodle Teacher Enrollment Privilege Escalation to RCE
exploit/multi/http/moodle_teacher_enrollment_priv_esc_to_rce
GitHub 3 repositories
-
HoangKien1020/CVE-2020-14321 ★ 44 · Jul 26, 2020
Course enrolments allowed privilege escalation from teacher role into manager role to RCE
-
lanzt/CVE-2020-14321 ★ 22 · Apr 28, 2021
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 · Feb 1, 2022
Modified Moodle exploit for privilege escalation (Dorvack)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | moodle/moodle | >= 3.9.0-beta, < 3.9.1 | 3.9.1 | GHSA-9q29-jcjw-fw7h |
| Packagist | moodle/moodle | >= 3.8.0-beta, < 3.8.4 | 3.8.4 | GHSA-9q29-jcjw-fw7h |
| Packagist | moodle/moodle | >= 3.6.0-beta, < 3.7.7 | 3.7.7 | GHSA-9q29-jcjw-fw7h |
| Packagist | moodle/moodle | < 3.5.13 | 3.5.13 | GHSA-9q29-jcjw-fw7h |