Skip to content
WatchlistCritical

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

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
ProductAffected versionsFixed in
MoodleMoodle>= 3.11.0, >= moodle 3.11.53.11.5
moodle/moodlecomposer>= 3.113.11.5

Patched Releases

Moodle

3.11.5

moodle/moodle

3.11.5

Timeline

  1. Publicly disclosed

    Feb 7, 2022

  2. Last updated

    Sep 8, 2026

Weakness Type

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

References

11 more references in the full CVE brief

FAQ

Common Questions.

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

Figures as of Oct 19, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.