Skip to content
Emerging threatsCritical

CVE-2021-36393Moodle SQL Injection

Moodle SQL Injection vulnerability

Published Mar 6, 2023 · Updated Oct 24, 2026 · Also known as BIT-moodle-2021-36393, GHSA-f46j-r7q3-6cm2, UBUNTU-CVE-2021-36393

Key Facts

Patch immediately
  • CVE-2021-36393 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 71% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Moodle 3.10.5, Moodle 3.11.1, Moodle 3.9.8.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

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)

71%

Higher than 99.4% of all scored CVEs

Exploit maturity

Proof of concept

ATLAS score

53/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

In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses.

Affected Products

8 affected entries in total
ProductAffected versionsFixed in
MoodleMoodle>= 3.11, 3.10 to 3.10.4, 3.9 to 3.9.7 and earlier unsupported versions3.9.8
moodle/moodlecomposer>= 3.10.0-beta3.9.8

Patched Releases

Moodle

3.10.5, 3.11.1, 3.9.8

moodle/moodle

3.10.5, 3.11.1, 3.9.8

Timeline

  1. Publicly disclosed

    Mar 6, 2023

  2. Last updated

    Oct 24, 2026

Weakness Type

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

References

2 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2021-36393 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 Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.