Skip to main content
Public proof of conceptFix available

CVE-2022-0332

A public proof of concept exists; no exploitation attested.

  • Published2022-01-25
  • Fixed in3.11.5
  • WeaknessCWE-89

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-01-2520:15CVE publishedNVD
  2. 2022-02-02Exploit-DB entryExploit-DB

Versions per branch

NVD · OSV
Moodle
BranchAffectedFixed in
3.11≥ 3.11.0, < 3.11.53.11.5
3.11≥ 3.11, < 3.11.53.11.5

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • moodleUbuntu:Pro:18.04:LTSall versions · no fixed version listed
  • moodleUbuntu:Pro:16.04:LTSall versions · no fixed version listed

Vendor advisories

  • CVE-2022-0332 Red Hat Product Security

    moodle: SQL injection risk in code fetching h5p activity user attempts

Full record on NVD

Fix

  1. Update Moodle to 3.11.5

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
EDB-50700
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVSS 3.19.8read 2026-10-23
  • NVDCVSS 2.07.5read 2026-10-23
  • CNAweakness (CWE)CWE-89known since 2026-10-23
  • NVDweakness (CWE)CWE-89read 2026-10-23
  • FIRST EPSSEPSS score32.1 %read 2026-12-04
  • PoC-in-GitHubproof of concept1known since 2026-11-01
  • Exploit-DBdetectionread 2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryCritical2022-01-26

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2022-01-25
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-6jhm-4vmx-mr76

Frequently asked questions

What is CVE-2022-0332?

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.

Is CVE-2022-0332 actively exploited?

Active exploitation of CVE-2022-0332 has not been confirmed. Its EPSS score was 32.1% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-0332?

CVE-2022-0332 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running moodle? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record