{"id":"GHSA-69c3-5xxf-58q2","summary":"SQL injection in moodle","details":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","aliases":["BIT-moodle-2022-30599","CVE-2022-30599"],"modified":"2024-02-17T05:34:07.550668Z","published":"2022-05-19T00:00:15Z","database_specific":{"cwe_ids":["CWE-89"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2022-06-02T20:21:39Z","nvd_published_at":"2022-05-18T18:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30599"},{"type":"WEB","url":"https://github.com/moodle/moodle/commit/a0f47c8bc4d6f5971025de7d63f22475701d2f86"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2083610"},{"type":"PACKAGE","url":"https://github.com/moodle/moodle"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OGF35EN5K2R6X3NTY3XPZSJ3UDASMXI6"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PIMSIRKCFLIC646K4GMUSZU7THOUVPAJ"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QCTWSE3JDMSYL7DPCMXMMJEXZSS6VIA5"},{"type":"WEB","url":"https://moodle.org/mod/forum/discuss.php?d=434581"},{"type":"WEB","url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-74333"}],"affected":[{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0"},{"fixed":"4.0.1"}]}],"versions":["v4.0.0","v4.0.0-beta","v4.0.0-rc1","v4.0.0-rc2","v4.0.0-rc3","v4.0.0-rc4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-69c3-5xxf-58q2/GHSA-69c3-5xxf-58q2.json"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.11"},{"fixed":"3.11.7"}]}],"versions":["v3.11.0","v3.11.0-beta","v3.11.0-rc1","v3.11.0-rc2","v3.11.1","v3.11.2","v3.11.3","v3.11.4","v3.11.5","v3.11.6"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-69c3-5xxf-58q2/GHSA-69c3-5xxf-58q2.json"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.10"},{"fixed":"3.10.11"}]}],"versions":["v3.10.0","v3.10.0-beta","v3.10.0-rc1","v3.10.0-rc2","v3.10.1","v3.10.10","v3.10.2","v3.10.3","v3.10.4","v3.10.5","v3.10.6","v3.10.7","v3.10.8","v3.10.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-69c3-5xxf-58q2/GHSA-69c3-5xxf-58q2.json"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.9"},{"fixed":"3.9.14"}]}],"versions":["v3.9.0","v3.9.0-beta","v3.9.0-rc1","v3.9.0-rc2","v3.9.0-rc3","v3.9.1","v3.9.10","v3.9.11","v3.9.12","v3.9.13","v3.9.2","v3.9.3","v3.9.4","v3.9.5","v3.9.6","v3.9.7","v3.9.8","v3.9.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-69c3-5xxf-58q2/GHSA-69c3-5xxf-58q2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}