{"id":"CVE-2022-30599","aliases":["BIT-moodle-2022-30599","EUVD-2022-2760","GHSA-69c3-5xxf-58q2","UBUNTU-CVE-2022-30599"],"status":"published","title":"SQL injection in moodle","description":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.0141,"percentile":0.7288,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2022-05-18T17:09:01Z","modified":"2026-10-28T02:30:26Z","fixes":[{"ecosystem":"Packagist","package":"moodle/moodle","fixed_in":["4.0.1","3.11.7","3.10.11","3.9.14"],"sources":["ghsa","osv"]},{"ecosystem":"Bitnami","package":"moodle","fixed_in":["3.9.14","3.10.11","3.11.7","4.0.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0"},{"fixed":"4.0.1"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.11"},{"fixed":"3.11.7"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.10"},{"fixed":"3.10.11"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.9"},{"fixed":"3.9.14"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"moodle","ranges":[{"type":"SEMVER","events":[{"introduced":"3.9.0"},{"fixed":"3.9.14"},{"introduced":"3.10.0"},{"fixed":"3.10.11"},{"introduced":"3.11.0"},{"fixed":"3.11.7"},{"introduced":"4.0.0"},{"fixed":"4.0.1"}]}]},{"source":"osv","ecosystem":"Packagist","package":"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"]},{"source":"osv","ecosystem":"Packagist","package":"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"]},{"source":"osv","ecosystem":"Packagist","package":"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"]},{"source":"osv","ecosystem":"Packagist","package":"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"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.9+dfsg-1","2.7.10+dfsg-1","2.7.11+dfsg-1","2.7.11+dfsg-2","2.7.12+dfsg-1","3.0.3+dfsg-0ubuntu1","3.0.3+dfsg-0ubuntu1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.3+dfsg-0ubuntu1","3.0.3+dfsg-0ubuntu1+esm1"]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"moodle","product":"moodle"},{"vendor":"redhat","product":"enterprise_linux"}],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=434581","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2083610","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","advisory","report","web"]},{"url":"http://git.moodle.org/gw?p=moodle.git\u0026a=search\u0026h=HEAD\u0026st=commit\u0026s=MDL-74333","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","advisory","web","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PIMSIRKCFLIC646K4GMUSZU7THOUVPAJ/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OGF35EN5K2R6X3NTY3XPZSJ3UDASMXI6/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QCTWSE3JDMSYL7DPCMXMMJEXZSS6VIA5/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30599","tags":["web","advisory"]},{"url":"https://github.com/moodle/moodle/commit/a0f47c8bc4d6f5971025de7d63f22475701d2f86","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OGF35EN5K2R6X3NTY3XPZSJ3UDASMXI6/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PIMSIRKCFLIC646K4GMUSZU7THOUVPAJ/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QCTWSE3JDMSYL7DPCMXMMJEXZSS6VIA5/"},{"url":"https://github.com/advisories/GHSA-69c3-5xxf-58q2"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/30xxx/CVE-2022-30599.json","tags":["advisory"]},{"url":"https://github.com/moodle/moodle","tags":["package"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OGF35EN5K2R6X3NTY3XPZSJ3UDASMXI6","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PIMSIRKCFLIC646K4GMUSZU7THOUVPAJ","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QCTWSE3JDMSYL7DPCMXMMJEXZSS6VIA5","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2022-30599","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-30599","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-30599","description":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","status":"published","published":"2022-05-18T17:09:01Z","modified":"2024-08-03T06:56:12.939Z","cwes":["CWE-89"],"updated_at":"2026-11-02T14:34:31.184134Z"}],"euvd":[{"id":"EUVD-2022-2760","description":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","status":"published","published":"2022-05-18T17:09:01Z","modified":"2024-08-03T06:56:12Z","updated_at":"2026-11-03T03:25:35.869088Z"}],"ghsa":[{"id":"GHSA-69c3-5xxf-58q2","title":"SQL injection in moodle","description":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","status":"published","published":"2022-05-19T00:00:15Z","modified":"2023-09-12T14:19:53Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:37:04.447845Z"}],"nvd":[{"id":"CVE-2022-30599","description":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","status":"published","published":"2022-05-18T18:15:10.567Z","modified":"2026-06-17T04:43:55.28Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:07:20.264424Z"}],"osv":[{"id":"GHSA-69c3-5xxf-58q2","title":"SQL injection in moodle","description":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","status":"published","published":"2022-05-19T00:00:15Z","modified":"2024-02-17T05:22:24.778068Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:39.618611Z"},{"id":"UBUNTU-CVE-2022-30599","description":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","status":"published","published":"2022-05-18T18:15:00Z","modified":"2026-09-23T18:45:22.245146532Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:53:53.899276Z"},{"id":"BIT-moodle-2022-30599","description":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","status":"published","published":"2024-03-06T11:04:17.886Z","modified":"2026-09-08T08:48:14.832827864Z","updated_at":"2026-11-02T15:28:33.469426Z"},{"id":"CVE-2022-30599","description":"A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.","status":"published","published":"2022-05-18T17:09:01Z","modified":"2026-10-28T02:30:26.19077574Z","cwes":["CWE-89"],"updated_at":"2026-11-02T15:44:25.516981Z"}]}}
