CVE-2022-0335
HIGH 8.8CVSS 3.1Cross Site Request Forgery in Moodle
A flaw was found in Moodle in versions 3.11 to 3.11.4, 3.10 to 3.10.8, 3.9 to 3.9.11 and earlier unsupported versions. The "delete badge alignment" functionality did not include the necessary token check to prevent a CSRF risk.
- Published
- 25 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- patrick@puiterwijk.org
- NVD status
- Modified
- Weakness
- CWE-352
- Also known as
- BIT-moodle-2022-0335GHSA-xpfv-89vg-r562
- Sources
- NVDJSONOSV GHSA-xpfv-89vg-r562JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/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.8.9 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.9.0, < 3.9.12 | 3.9.12 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.10.0, < 3.10.9 | 3.10.9 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.11.0, < 3.11.5 | 3.11.5 |
| OSV | Packagist | moodle/moodle | >= 3.11, < 3.11.5 | 3.11.5 |
| 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=2043666 · Issue Tracking, Third Party Advisory, WEB
- https://moodle.org/mod/forum/discuss.php?d=431103 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-0335 · ADVISORY
- https://github.com/moodle/moodle/commit/d40cc61eba229c6d1f47b9a525022fbc9136b9f6 · WEB
- https://github.com/moodle/moodle · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 25 Jan 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 28 Jan 2022)