patchminder
Proof of concept · Exploit-DB CVE-2022-0332

SQL injectionin the moodle/moodle package.

Published 25 Jan 2022 · Updated 2 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
Critical 9.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 32.1% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 3.11.5 or later
In plain words

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.

What to do now
  • Upgrade moodle/moodle (Packagist) to 3.11.5 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
moodle
Not confirmed
Not confirmed
CVE record
moodle/moodle (Packagist)
3.11 to before 3.11.5
3.11.5
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 21 Jan 2022
    CVE ID reserved by fedora.
  2. 25 Jan 2022
    Published in the CVE List.
  3. 25 Jan 2022
    First public proof of concept on GitHub.
  4. 2 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
1 repository
Exploit-DBEDB-ID 50700web application exploit for php, published 2 Feb 2022
GitHubno warning signs foundnumanturle/CVE-2022-033246 stars · created 25 Jan 2022

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

Same weakness: SQL injection

All CWE-89 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-0332: SQL injection in the moodle/moodle package. https://patchminder.com/cve/cve-2022-0332/ (accessed 5 December 2026).