{"id":"CVE-2022-30599","published":"2022-05-18T17:09:01Z","modified":"2024-08-03T06:56:12Z","title":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria","vendor":null,"product":null,"tier":"tail","description":{"text":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0141,"percentile":0.73322,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=434581","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2083610","tags":["x_refsource_MISC"]},{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-74333","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PIMSIRKCFLIC646K4GMUSZU7THOUVPAJ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OGF35EN5K2R6X3NTY3XPZSJ3UDASMXI6/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QCTWSE3JDMSYL7DPCMXMMJEXZSS6VIA5/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":14.66}]},"affectedVersions":[{"vendor":"n/a","product":"moodle","versions":["Affects : 4.0, 3.11 to 3.11.6, 3.10 to 3.10.10, 3.9 to 3.9.13 and earlier unsupported versions"]}],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=4.0, <4.0.1",">=3.11, <3.11.7",">=3.10, <3.10.11",">=3.9, <3.9.14"],"patched":["4.0.1","3.11.7","3.10.11","3.9.14"],"from":["GHSA-69c3-5xxf-58q2"],"provenance":"source"}],"summary":{"text":"A flaw in Moodle's Badges component lets SQL injection occur in the code that handles configuring badge criteria.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:29Z"},"euvd":{"id":"EUVD-2022-2760","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-moodle-moodle-cve-2022-0983","parents":[{"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"}]}]}}