CVE-2022-0332Moodle SQL Injection
SQL injection in Moodle
Published Feb 7, 2022 · Updated Sep 8, 2026 · Also known as BIT-moodle-2022-0332, GHSA-6jhm-4vmx-mr76, TR-22-0085, TR-22-0115, UBUNTU-CVE-2022-0332
Key Facts
Patch immediately- CVE-2022-0332 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Moodle, moodle/moodle (composer).
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 44% probability of exploitation in the next 30 days.
- Fixed versions are available, including Moodle 3.11.5, moodle/moodle 3.11.5.
- Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Scores
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
44%
Higher than 98.7% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
47/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2022-0332
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-0332
- advisoryhttps://ubuntu.com/security/CVE-2022-0332
- advisoryhttps://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-0332
- advisoryhttps://bugzilla.redhat.com/show_bug.cgi?id=2043661
- advisoryhttps://cxsecurity.com/issue/WLB-2022020019
Description
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.
Affected Products
6 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| MoodleMoodle | >= 3.11.0, >= moodle 3.11.5 | 3.11.5 |
| moodle/moodlecomposer | >= 3.11 | 3.11.5 |
Patched Releases
Moodle
3.11.5
moodle/moodle
3.11.5
Timeline
Publicly disclosed
Feb 7, 2022
Last updated
Sep 8, 2026
Weakness Type
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2022-0332
- advisoryubuntu.com · CVE-2022-0332
- advisoryweb.nvd.nist.gov · vuln
- advisorybugzilla.redhat.com · show_bug.cgi
FAQ
Common Questions.
A flaw was found in Moodle in versions 3.11 to 3.11.4.
Affected: Moodle versions >= 3.11.0, >= moodle 3.11.5; moodle/moodle (composer) versions >= 3.11. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Moodle 3.11.5, moodle/moodle 3.11.5.
Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Is CVE-2022-0332 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo