{"id":"GHSA-8v23-w4w5-w83c","aliases":["BIT-moodle-2022-45149","CVE-2022-45149"],"title":"Cross-Site Request Forgery in Moodle","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"MODERATE","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.","severity":"medium","score":5.4,"published":"2022-11-23T15:30:21.000Z","modified":"2024-02-18T05:29:45.733Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-8v23-w4w5-w83c","url":"https://osv.dev/vulnerability/GHSA-8v23-w4w5-w83c"}],"ranges":[{"events":[{"introduced":"3.9.0"},{"fixed":"3.9.18"}],"type":"ECOSYSTEM"}],"versions":["v3.9.0","v3.9.1","v3.9.10","v3.9.11","v3.9.12","v3.9.13","v3.9.14","v3.9.15","v3.9.16","v3.9.17","v3.9.2","v3.9.3","v3.9.4","v3.9.5","v3.9.6","v3.9.7","v3.9.8","v3.9.9"],"fixed":["3.9.18"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-8v23-w4w5-w83c","url":"https://osv.dev/vulnerability/GHSA-8v23-w4w5-w83c"}],"ranges":[{"events":[{"introduced":"3.11.0"},{"fixed":"3.11.11"}],"type":"ECOSYSTEM"}],"versions":["v3.11.0","v3.11.1","v3.11.10","v3.11.2","v3.11.3","v3.11.4","v3.11.5","v3.11.6","v3.11.7","v3.11.8","v3.11.9"],"fixed":["3.11.11"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-8v23-w4w5-w83c","url":"https://osv.dev/vulnerability/GHSA-8v23-w4w5-w83c"}],"ranges":[{"events":[{"introduced":"4.0.0"},{"fixed":"4.0.5"}],"type":"ECOSYSTEM"}],"versions":["v4.0.0","v4.0.1","v4.0.2","v4.0.3","v4.0.4"],"fixed":["4.0.5"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-45149","https://bugzilla.redhat.com/show_bug.cgi?id=2142772","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB","https://moodle.org/mod/forum/discuss.php?d=440769","http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-75862"],"sources":[{"name":"OSV","id":"GHSA-8v23-w4w5-w83c","modified":"2024-02-18T05:29:45.733419Z","url":"https://osv.dev/vulnerability/GHSA-8v23-w4w5-w83c"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T19:25:35.956Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}