# CVE-2024-43437: Moodle: xss risk when restoring malicious course backup file

- Severity: Medium 5.4 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/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): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2024-11-11T12:19:25.715Z
- Modified: 2026-09-08T08:48:15.239Z
- Also known as: GHSA-4hjf-6pxr-549h, BIT-MOODLE-2024-43437
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## Description

A flaw was found in moodle. Insufficient sanitizing of data when performing a restore could result in a cross-site scripting (XSS) risk from malicious backup files.

(As written by CVE List.)

## Affected

- moodle: before 4.1.12; from 4.2 before 4.2.9; from 4.3 before 4.3.6; from 4.4 before 4.4.2
- moodle/moodle (Packagist): from 4.4.0 before 4.4.2; from 4.3.0 before 4.3.6; from 4.2.0 before 4.2.9; before 4.1.12
- moodle moodle: before 4.1.12; from 4.2.0 before 4.2.9; from 4.3.0 before 4.3.6; from 4.4.0 before 4.4.2
- moodle (Bitnami): before 4.1.12; from 4.2.0 before 4.2.9; from 4.3.0 before 4.3.6; from 4.4.0 before 4.4.2

## Every score

- fedora: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Low `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2304266> (issue-tracking, permissions-required, web)
- <https://moodle.org/mod/forum/discuss.php?d=461207> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-43437> (advisory, web)
- <https://github.com/moodle/moodle> (package)
- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-81394> (web)

## Sources

- CVE List: [CVE-2024-43437](https://www.cve.org/CVERecord?id=CVE-2024-43437), CVE Terms of Use, modified 2025-03-13
- GitHub Advisory Database: [GHSA-4hjf-6pxr-549h](https://github.com/advisories/GHSA-4hjf-6pxr-549h), CC-BY-4.0, modified 2025-04-24
- NVD: [CVE-2024-43437](https://nvd.nist.gov/vuln/detail/CVE-2024-43437), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2024-43437](https://osv.dev/vulnerability/BIT-MOODLE-2024-43437), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-43437 · Whole record: https://cve.day/CVE-2024-43437.json · Rebuilt by cve.day 2026-11-25T22:58:48.032Z
