# CVE-2021-3943: Moodle vulnerable to RCE via unsafe deserialization

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/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): 2.40%, higher than 84% of CVEs (2026-12-01)
- Published: 2021-11-22T15:59:29.000Z
- Modified: 2026-09-08T08:48:14.898Z
- Also known as: GHSA-8jhp-2gcr-qw96, BIT-MOODLE-2021-3943
- Weaknesses: CWE-20
- Assigned by: fedora

## Description

A flaw was found in Moodle in versions 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions. A remote code execution risk when restoring backup files was identified.

(As written by CVE List.)

## Affected

- moodle: moodle 3.11.4, moodle 3.10.8 and moodle 3.9.11
- moodle/moodle (Packagist): from 3.11 before 3.11.4; from 3.10 before 3.10.8; from 3.9 before 3.9.11
- moodle moodle: from 3.9.0 up to 3.9.10; from 3.10.0 up to 3.10.7; from 3.11.0 up to 3.11.3
- moodle (Bitnami): from 3.9.0 before 3.9.11; from 3.10.0 before 3.10.8; from 3.11.0 before 3.11.4

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2021963> (advisory, issue-tracking, third-party-advisory, web)
- <https://moodle.org/mod/forum/discuss.php?d=429095> (advisory, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3943> (advisory, web)
- <https://github.com/moodle/moodle/commit/58e8ad852f9e75c8158e5bee02c273383f7d9865> (web)

## Sources

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

---

Page: https://cve.day/CVE-2021-3943 · Whole record: https://cve.day/CVE-2021-3943.json · Rebuilt by cve.day 2026-11-25T22:58:05.706Z
