Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2020-14321 BIT-moodle-2020-14321EUVD-2020-6471GHSA-9q29-jcjw-fw7h

Moodle Incorrect Authorization vulnerability

Published Aug 16, 2022 · Updated Aug 4, 2024 · Assigned by redhat

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

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

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.

  • 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

EcosystemPackageAffectedFixedRecord
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

References