CVE-2021-36393

CRITICAL

Moodle <3.9.8 and 3.11.0-beta-3.11.1 - SQL Injection

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2021-36393. PoCs published by StackOverflowExcept1on.

AI-analyzed exploit summary This repository contains a functional JavaScript-based exploit for CVE-2021-36393, a blind SQL injection vulnerability in Moodle. The exploit leverages bit-shifting techniques to extract sensitive data such as user password hashes, session IDs, and quiz answers.

Description

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

Exploits (2)

nomisec WORKING POC 4 stars
by StackOverflowExcept1on · poc
https://github.com/StackOverflowExcept1on/CVE-2021-36393

This repository contains a functional JavaScript-based exploit for CVE-2021-36393, a blind SQL injection vulnerability in Moodle. The exploit leverages bit-shifting techniques to extract sensitive data such as user password hashes, session IDs, and quiz answers.

Classification
Working Poc 100%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: Moodle 3.11, 3.10 to 3.10.4, 3.9 to 3.9.7 and earlier unsupported versions
Auth required
Prerequisites: Authenticated user session · Enrollment in at least one course
devstral-2 · analyzed Feb 18, 2026 Full analysis →
inthewild WORKING POC
poc
https://github.com/t0x1cx/cve-2021-36393-exploit

This repository contains a functional Python exploit for CVE-2021-36393, a time-based SQL injection vulnerability in Moodle's 'sort' parameter. The exploit extracts database names, usernames, and password hashes using a time-based blind SQLi technique.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: Moodle (3.11, 3.10 to 3.10.4, 3.9 to 3.9.7 and earlier unsupported versions)
Auth required
Prerequisites: Python environment · Valid Moodle session cookie · Student-level privileges
devstral-2 · analyzed Feb 23, 2026 Full analysis →

References (1)

Core 1
Core References

Scores

CVSS v3 9.8
EPSS 0.2399
EPSS Percentile 96.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

CWE
CWE-89
Status published
Products (2)
moodle/moodle < 3.9.8
moodle/moodle 3.11.0-beta - 3.11.1Packagist
Published Mar 06, 2023
Tracked Since Feb 18, 2026