{"id":"CVE-2021-43559","published":"2021-11-22T16:00:05Z","modified":"2024-08-04T04:03:08Z","title":"A flaw was found in Moodle in versions 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 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.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions. The \"delete related badge\" 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.50882,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2021517","tags":["x_refsource_MISC"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=429099","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.4, moodle 3.10.8 and moodle 3.9.11"]}],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.11, <3.11.4",">=3.10, <3.10.8",">=3.9, <3.9.11"],"patched":["3.11.4","3.10.8","3.9.11"],"from":["GHSA-3jrj-x6cj-97cp"],"provenance":"source"}],"summary":{"text":"The flaw is in Moodle's badge management functionality, specifically the \"delete related badge\" feature, which lacks the token check needed to block cross-site request forgery in affected versions 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported releases. An attacker could craft a malicious page that causes an authenticated user's browser to submit a request deleting a related badge, which requires the victim to be logged in and to visit or interact with that attacker-controlled content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:40Z"},"euvd":{"id":"EUVD-2022-2204","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-moodle-moodle-cve-2021-43559","children":[{"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"}]}]}}