# CVE-2023-5540: Moodle: authenticated remote code execution risk in imscp

- Severity: Medium 4.7 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L`
- 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): 2.27%, higher than 83% of CVEs (2026-12-01)
- Published: 2023-11-09T19:15:53.821Z
- Modified: 2026-09-10T03:49:47.708Z
- Also known as: GHSA-w8x2-w4qr-v3x4, BIT-MOODLE-2023-5540
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: fedora

## Description

A remote code execution risk was identified in the IMSCP activity. By default this was only available to teachers and managers.

(As written by CVE List.)

## Affected

- moodle: from 4.2.0 before 4.2.3; from 4.1.0 before 4.1.6; from 4.0.0 before 4.0.11; from 3.11.0 before 3.11.17; before 3.9.24
- moodle/moodle (Packagist): before 4.3.0-rc2
- moodle moodle: before 3.9.24; from 3.11.0 before 3.11.17; from 4.0.0 before 4.0.11; from 4.1.0 before 4.1.6; from 4.2.0 before 4.2.3
- fedoraproject extra_packages_for_enterprise_linux: 7.0
- fedoraproject fedora: 38
- moodle (Bitnami): before 3.9.24; from 3.11.0 before 3.11.17; from 4.0.0 before 4.0.11; from 4.1.0 before 4.1.6; from 4.2.0 before 4.2.3

## Every score

- fedora: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-79409> (fix, patch, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2243432> (advisory, issue-tracking, patch, third-party-advisory, web)
- <https://moodle.org/mod/forum/discuss.php?d=451581> (advisory, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5540> (advisory, web)
- <https://github.com/moodle/moodle/commit/3400ae6510b11202aa9d86f7e75b3dff10d81522> (web)
- <https://github.com/moodle/moodle> (package)

## Sources

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

---

Page: https://cve.day/CVE-2023-5540 · Whole record: https://cve.day/CVE-2023-5540.json · Rebuilt by cve.day 2026-11-25T22:58:30.283Z
