# CVE-2026-26045: Moodle: moodle: improper validation in file restore functionality leading to remote code execution

- Severity: High 7.2 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- 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.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-02-21T05:40:05.763Z
- Modified: 2026-09-08T08:48:15.542Z
- Also known as: GHSA-ggxq-2mg9-8966, BIT-MOODLE-2026-26045
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: fedora

## Description

A flaw was identified in Moodle’s backup restore functionality where specially crafted backup files were not properly validated during processing. If a malicious backup file is restored, it could lead to unintended execution of server-side code. Since restore capabilities are typically available to privileged users, exploitation requires authenticated access. Successful exploitation could result in full compromise of the Moodle server.

(As written by CVE List.)

## Affected

- moodle: before 4.5.9; from 5.0.0 before 5.0.5; from 5.1.0 before 5.1.2
- moodle/moodle (Packagist): from 5.1.0-beta before 5.1.2; from 5.0.0-beta before 5.0.5; before 4.5.9
- moodle moodle: before 4.5.9; from 5.0.0 before 5.0.5; from 5.1.0 before 5.1.2
- moodle (Bitnami): before 4.5.9; from 5.0.0 before 5.0.5; from 5.1.0 before 5.1.2

## Every score

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

## References

- <https://access.redhat.com/security/cve/CVE-2026-26045> (advisory, third-party-advisory, vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2440901> (advisory, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-26045> (advisory, web)
- <https://github.com/moodle/moodle/commit/566054ba11f609a6d48d09b32e85d435d49927da> (web)
- <https://github.com/moodle/moodle> (package)
- <https://moodle.org/mod/forum/discuss.php?d=473314> (web)

## Sources

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

---

Page: https://cve.day/CVE-2026-26045 · Whole record: https://cve.day/CVE-2026-26045.json · Rebuilt by cve.day 2026-11-25T22:59:14.598Z
