{"id":"CVE-2022-0983","published":"2022-03-25T18:03:07Z","modified":"2024-08-02T23:47:42Z","title":"An SQL injection risk was identified in Badges code relating to configuring criteria","vendor":null,"product":null,"tier":"tail","description":{"text":"An SQL injection risk was identified in Badges code relating to configuring criteria. Access to the relevant capability was limited to teachers and managers by default.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00909,"percentile":0.60801,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2064119","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4GRMWBGHOJMFXMTORECQNULJK7ZJJ6Y/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":12.2,"factors":[{"name":"EPSS percentile","points":12.16}]},"affectedVersions":[{"vendor":"n/a","product":"moodle","versions":["moodle 3.11.6, moodle 3.10.10, moodle 3.9.13"]}],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.11.0, <3.11.6",">=3.10.0, <3.10.10","<3.9.13"],"patched":["3.11.6","3.10.10","3.9.13"],"from":["GHSA-h2fw-93qx-vrcq"],"provenance":"source"}],"summary":{"text":"An SQL injection flaw exists in the Badges code that handles configuring criteria. Exploitation requires access to that capability, which by default is limited to teachers and managers, so an attacker would need an account holding one of those roles.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:58Z"},"euvd":{"id":"EUVD-2022-1433","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-moodle-moodle-cve-2022-0983","children":[{"from":"CVE-2022-0983","to":"CVE-2022-30599","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["badges/criteria/award_criteria_profile.php"],"commits":["https://github.com/moodle/moodle/commit/c2794752ea3cdda2d64a0651da08b2cdf730d9f1","https://github.com/moodle/moodle/commit/a0f47c8bc4d6f5971025de7d63f22475701d2f86"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.74,"basis":"same package + description similarity"}]}]}}