CVE-2022-0332
CRITICAL 9.8CVSS 3.1SQL injection in Moodle
A flaw was found in Moodle in versions 3.11 to 3.11.4. An SQL injection risk was identified in the h5p activity web service responsible for fetching user attempt data.
- Published
- 25 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- patrick@puiterwijk.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- BIT-moodle-2022-0332GHSA-6jhm-4vmx-mr76
- Sources
- NVDJSONOSV GHSA-6jhm-4vmx-mr76JSON
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.11.0, < 3.11.5 | 3.11.5 |
| OSV | Packagist | moodle/moodle | >= 3.11, < 3.11.5 | 3.11.5 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2043661 · Issue Tracking, Third Party Advisory, WEB
- https://moodle.org/mod/forum/discuss.php?d=431099 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-0332 · ADVISORY
- https://github.com/moodle/moodle/commit/c7a62a8c82219b50589257f79021da1df1a76808 · WEB
- https://github.com/moodle/moodle · WEB
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)