Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2021-36396 BIT-moodle-2021-36396EUVD-2023-0870GHSA-4rmj-w58m-fvch

Moodle vulnerable to Server-Side Request Forgery

Published Mar 6, 2023 · Updated Mar 5, 2025 · Assigned by fedora

Description

In Moodle, insufficient redirect handling made it possible to blindly bypass cURL blocked hosts/allowed ports restrictions, resulting in a blind SSRF risk.

Affected products

VendorProductAffectedFixed
— Moodle 3.11, 3.10 to 3.10.4, 3.9 to 3.9.7 and earlier unsupported versions —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS moodle No fix yet —
Ubuntu Pro 16.04 LTS moodle No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist moodle/moodle >= 3.11.0-beta, < 3.11.1 3.11.1 GHSA-4rmj-w58m-fvch
Packagist moodle/moodle >= 3.10.0-beta, < 3.10.5 3.10.5 GHSA-4rmj-w58m-fvch
Packagist moodle/moodle < 3.9.8 3.9.8 GHSA-4rmj-w58m-fvch

Advisories 1

References