{"id":"CVE-2022-0335","published":"2022-01-25T19:11:12Z","modified":"2024-08-02T23:25:39Z","title":"A flaw was found in Moodle in versions 3.11 to 3.11.4, 3.10 to 3.10.8, 3.9 to 3.9.11 and earlier unsupported versions","vendor":null,"product":null,"tier":"tail","description":{"text":"A flaw was found in Moodle in versions 3.11 to 3.11.4, 3.10 to 3.10.8, 3.9 to 3.9.11 and earlier unsupported versions. The \"delete badge alignment\" functionality did not include the necessary token check to prevent a CSRF risk.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00624,"percentile":0.50881,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2043666","tags":["x_refsource_MISC"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=431103","tags":["x_refsource_MISC"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":10.18}]},"affectedVersions":[{"vendor":"n/a","product":"moodle","versions":["moodle 3.11.5, moodle 3.10.9 and moodle 3.9.12"]}],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.11, <3.11.5",">=3.10, <3.10.8",">=3.9, <3.9.11"],"patched":["3.11.5","3.10.8","3.9.11"],"from":["GHSA-xpfv-89vg-r562"],"provenance":"source"}],"summary":{"text":"A cross-site request forgery flaw exists in Moodle, affecting versions 3.11 to 3.11.4, 3.10 to 3.10.8, 3.9 to 3.9.11 and earlier unsupported versions, in the \"delete badge alignment\" functionality, which lacks the token check needed to prevent CSRF. An attacker could induce an authenticated user to trigger that deletion request by getting them to visit a malicious page or follow a crafted link while logged in to Moodle.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:22Z"},"euvd":{"id":"EUVD-2022-0746","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-moodle-moodle-cve-2021-43559","parents":[{"from":"CVE-2021-43559","to":"CVE-2022-0335","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["badges/renderer.php"],"commits":["https://github.com/moodle/moodle/commit/20d41ebae4eb28269298504c68db511a05ec4969","https://github.com/moodle/moodle/commit/d40cc61eba229c6d1f47b9a525022fbc9136b9f6"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.92,"basis":"same package + description similarity"}]}]}}