{"id":"CVE-2022-45149","published":"2022-11-23T00:00:00Z","modified":"2025-04-25T19:40:45Z","title":"A vulnerability was found in Moodle which exists due to insufficient validation of the HTTP request origin in course…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0051,"percentile":0.44427,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2142772","tags":[]},{"url":"https://moodle.org/mod/forum/discuss.php?d=440769","tags":[]},{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-75862","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2/","tags":["vendor-advisory"]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":8.89},{"name":"CVSS severity","points":3.78}]},"affectedVersions":[{"vendor":"n/a","product":"Moodle","versions":["Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-25T19:37:37.910510Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.9.0, <3.9.18",">=3.11.0, <3.11.11",">=4.0.0, <4.0.5"],"patched":["3.9.18","3.11.11","4.0.5"],"from":["GHSA-8v23-w4w5-w83c"],"provenance":"source"}],"summary":{"text":"A flaw in Moodle's course redirect handling lets a user's CSRF token be unnecessarily included in the redirect URL after restoring a course, because the origin of the HTTP request is insufficiently validated. A remote attacker can exploit this by tricking a victim into visiting a specially crafted web page, which performs arbitrary actions on the victim's behalf on the vulnerable site, with no authentication required by the attacker but user interaction needed from the victim.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:41Z"},"euvd":{"id":"EUVD-2022-7288","exploited":false,"provenance":"source"}}