# CVE-2020-25701: Privilage Escalation in moodle

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.39%, higher than 73% of CVEs (2026-12-01)
- Published: 2020-11-19T16:10:53.000Z
- Modified: 2026-09-08T08:48:14.435Z
- Also known as: GHSA-c9hq-g4q8-w893, BIT-MOODLE-2020-25701
- Weaknesses: CWE-284, CWE-863
- Assigned by: redhat

## Description

If the upload course tool in Moodle was used to delete an enrollment method which did not exist or was not already enabled, the tool would erroneously enable that enrollment method. This could lead to unintended users gaining access to the course. Versions affected: 3.9 to 3.9.2, 3.8 to 3.8.5, 3.7 to 3.7.8, 3.5 to 3.5.14 and earlier unsupported versions. This is fixed in moodle 3.9.3, 3.8.6, 3.7.9, 3.5.15, and 3.10.

(As written by CVE List.)

## Affected

- moodle: Fixed in 3.9.3; Fixed in 3.8.6; Fixed in 3.7.9; Fixed in 3.5.15; Fixed in 3.10
- moodle/moodle (Packagist): from 3.9.0 before 3.9.3; from 3.8.0 before 3.8.6; from 3.7.0 before 3.7.9; from 3.5 before 3.5.15
- moodle moodle: from 3.5.0 up to 3.5.14; from 3.7.0 up to 3.7.8; from 3.8.0 up to 3.8.5; from 3.9.0 up to 3.9.2
- fedoraproject fedora: 32; 33
- moodle (Bitnami): from 3.5.0 before 3.5.15; from 3.7.0 before 3.7.9; from 3.8.0 before 3.8.6; from 3.9.0 before 3.9.3

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1895432> (advisory, issue-tracking, vendor-advisory, web)
- <https://moodle.org/mod/forum/discuss.php?d=413939> (advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B55KXBVAT45MDASJ3EK6VIGQOYGJ4NH6/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4NNFCHPPHRJNJROIX6SYMHOC6HMKP3GU/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25701> (advisory, web)
- <https://github.com/moodle/moodle/commit/b8e1eec4c77c858de87fedf4e405e929539ea0c5> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4NNFCHPPHRJNJROIX6SYMHOC6HMKP3GU> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B55KXBVAT45MDASJ3EK6VIGQOYGJ4NH6> (web)

## Sources

- CVE List: [CVE-2020-25701](https://www.cve.org/CVERecord?id=CVE-2020-25701), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-c9hq-g4q8-w893](https://github.com/advisories/GHSA-c9hq-g4q8-w893), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2020-25701](https://nvd.nist.gov/vuln/detail/CVE-2020-25701), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2020-25701](https://osv.dev/vulnerability/BIT-MOODLE-2020-25701), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-25701 · Whole record: https://cve.day/CVE-2020-25701.json · Rebuilt by cve.day 2026-11-25T22:57:55.881Z
