CVE-2021-3943
CRITICAL 9.8CVSS 3.1Moodle vulnerable to RCE via unsafe deserialization
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.
- Published
- 22 Nov 2021
- Last modified
- 17 Jun 2026
- Assigned by
- patrick@puiterwijk.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- BIT-moodle-2021-3943GHSA-8jhp-2gcr-qw96
- Sources
- NVDJSONOSV GHSA-8jhp-2gcr-qw96JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.9.0, <= 3.9.10 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.10.0, <= 3.10.7 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.11.0, <= 3.11.3 | |
| OSV | Packagist | moodle/moodle | >= 3.11, < 3.11.4 | 3.11.4 |
| OSV | Packagist | moodle/moodle | >= 3.10, < 3.10.8 | 3.10.8 |
| OSV | Packagist | moodle/moodle | >= 3.9, < 3.9.11 | 3.9.11 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2021963 · Issue Tracking, Third Party Advisory, WEB
- https://moodle.org/mod/forum/discuss.php?d=429095 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3943 · ADVISORY
- https://github.com/moodle/moodle/commit/58e8ad852f9e75c8158e5bee02c273383f7d9865 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 22 Nov 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 23 Nov 2021)