Original description
A vulnerability was found in Moodle which exists due to insufficient validation of the HTTP request origin in course redirect URL. A user's CSRF token was unnecessarily included in the URL when being redirected to a course they have just restored. A remote attacker can trick the victim to visit a specially crafted web page and perform arbitrary actions on behalf of the victim on the vulnerable website. This flaw allows an attacker to perform cross-site request forgery attacks.
Affected software
- Moodle ≥ 4.0.0 < 4.0.5≥ 3.9.0 < 3.9.18≥ 3.11.0 < 3.11.11 Fixed in: 4.0.5, 3.9.18, 3.11.11 exact match
Details
- Published
- 2022-11-23
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N- CWE
- CWE-352
- EPSS (30-day exploit probability)
- 0.44% (percentile 39)
References
- cve.org/CVE-2022-45149
- nvd.nist.gov/vuln/detail/CVE-2022-45149
- git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-75862
- bugzilla.redhat.com/show_bug.cgi?id=2142772
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N...
- moodle.org/mod/forum/discuss.php?d=440769
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.