Vulnerabilities · 2022 · Moodle
CVE-2022-45149
Moodle vulnerability
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 products
Moodle, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Moodle runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- 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
- nvd.nist.gov/vuln/detail/CVE-2022-45149
- cve.org/CVERecord?id=CVE-2022-45149
More vulnerabilities in Moodle products
CVE-2025-62401CVE-2025-62400CVE-2025-62399CVE-2025-62398CVE-2025-62397CVE-2025-62396CVE-2025-62395CVE-2025-62394All 611
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.