{"id":"CVE-2022-0335","details":"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.","aliases":["BIT-moodle-2022-0335","GHSA-xpfv-89vg-r562"],"modified":"2026-07-11T03:53:26.287280496Z","published":"2022-01-25T19:11:12Z","database_specific":{"unresolved_ranges":[{"extracted_events":[{"introduced":"moodle 3.11.5, moodle 3.10.9 and moodle 3.9.12"},{"last_affected":"moodle 3.11.5, moodle 3.10.9 and moodle 3.9.12"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"fedora","cwe_ids":["CWE-352"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0335.json"},"references":[{"type":"WEB","url":"https://moodle.org/mod/forum/discuss.php?d=431103"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0335.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0335"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2043666"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/moodle/moodle","events":[{"introduced":"0"},{"introduced":"500c131eb49771e36f68d151dfa37fef5a9bc2df"},{"fixed":"983c94d3410a86437f1f3a88cae099e8cd2b1002"},{"introduced":"ec58cefefb2722f61f77c9a2b6a12d40a8c078a0"},{"fixed":"bdb0364a3d1ed1d7489966e03ad16aa4a4fd51d8"},{"introduced":"94f2d3fc4b974c5c7d500988c56b7ca15f58d7ec"},{"fixed":"a59bec2a6f3c093ebe3b8eb0316c07188a4a339e"}],"database_specific":{"cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"3.8.9"},{"introduced":"3.9.0"},{"fixed":"3.9.12"},{"introduced":"3.10.0"},{"fixed":"3.10.9"},{"introduced":"3.11.0"},{"fixed":"3.11.5"}],"source":"CPE_RANGE"}}],"versions":["v3.11.4","v3.10.8","v3.9.11","v3.11.3","v3.9.10","v3.10.7","v3.11.1","v3.11.2","v3.10.6","v3.9.9","v3.10.5","v3.9.8","v3.11.0","v3.10.4","v3.9.7","v3.10.3","v3.9.6","v3.10.2","v3.9.5","v3.10.1","v3.9.4","v3.9.3","v3.10.0","v3.9.2","v3.9.1","v3.9.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-0335.json"}}],"schema_version":"1.7.5"}