Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

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

72
This week
CRITICAL 9.8REMOTEUPGRADE

CVE-2021-36393 is a critical-severity flaw (CVSS 9.8) affecting moodle. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • Critical severity
  • EPSS top 1%: very likely to be exploited
  • Public exploit reference
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance52.3% (top 1%)
CISA exploited listNo
WeaknessCWE-89
Published2023-03-06
Last modified2026-06-17
Publisher (CNA): Fedora Project · Vendor: moodle

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

moodle moodle UPGRADE
Affected: < 3.9.8 · >= 3.10.0 and < 3.10.5 · >= 3.11.0 and < 3.11.1
Fixed in: 3.9.8, 3.10.5, 3.11.1
Safe to downgrade to: a release before 3.10.0
1. Check installed version
apt-cache policy moodle || rpm -q moodle || moodle --version
2. UPGRADE to 3.9.8 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade moodle
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade moodle
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 3.10.0 (Debian / Ubuntu)
apt-cache madison moodle sudo apt install moodle=<VERSION_BEFORE_3.10.0> sudo apt-mark hold moodle
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list moodle sudo dnf downgrade moodle-<VERSION_BEFORE_3.10.0> sudo dnf versionlock add moodle
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

Composer (PHP) · moodle/moodle · FIXED · 3.11.1 · vulnerable: >= 3.11.0-beta, < 3.11.1 · source
composer require "moodle/moodle:>=3.11.1"
Fedora ELN · clevis · FIXED · 25-1.eln160 · FEDORA-2026-ee0f6d5824 · source
sudo dnf upgrade --advisory=FEDORA-2026-ee0f6d5824
Fedora 46 · emacs-bbdb · FIXED · 3.2.2b-14.20220729git1b121e9.fc46 · FEDORA-2026-5944278b3b · source
sudo dnf upgrade --advisory=FEDORA-2026-5944278b3b

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2021-36393?

moodle: upgrade to 3.9.8, 3.10.5, 3.11.1. Exact commands for each OS are on this page.

Is CVE-2021-36393 being exploited?

CVE-2021-36393 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2021-36393 affect?

CVE-2021-36393 affects moodle. Severity is critical (CVSS 9.8). In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses.

How urgent is CVE-2021-36393?

Priority 72/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action

Software pages

Moodle vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.