Skip to content
Vulnerability Intelligence

CVE-2021-36393

Critical

Moodle SQL Injection vulnerability

Published Mar 6, 2023 · Updated Sep 8, 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. No public exploit code is known.
  • EPSS estimates a 52% 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.

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)

52%

Higher than 98.9% of all scored CVEs

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

None known

Get the full CVE-2021-36393 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

Description

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

Affected Products

6 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

    Sep 8, 2026

Weakness Type

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

References

1 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2021-36393 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo