{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-0983","id":"CVE-2022-0983","title":"SQL Injection in Moodle","description":"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.","descriptionLong":"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.","published":"2022-03-25T18:03:07.000Z","updated":"2026-10-28T02:30:28.285068925Z","reserved":"2022-03-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["moodle"],"affectedProducts":[{"vendor":"n/a","product":"moodle","defaultStatus":null,"versions":[{"status":"affected","version":"moodle 3.11.6, moodle 3.10.10, moodle 3.9.13"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"moodle/moodle","purl":"pkg:composer/moodle/moodle","ranges":[">=3.11.0 <3.11.6",">=3.10.0 <3.10.10","<3.9.13"],"fixed":["3.11.6","3.10.10","3.9.13"],"advisory":"GHSA-h2fw-93qx-vrcq"}],"cwes":["CWE-89"],"aliases":["BIT-moodle-2022-0983","GHSA-h2fw-93qx-vrcq"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2064119","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4GRMWBGHOJMFXMTORECQNULJK7ZJJ6Y/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0983.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0983","tags":["advisory"]},{"url":"https://github.com/moodle/moodle/commit/c2794752ea3cdda2d64a0651da08b2cdf730d9f1","tags":["web"]},{"url":"https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-74074","tags":["web"]},{"url":"https://github.com/moodle/moodle","tags":["package"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G4GRMWBGHOJMFXMTORECQNULJK7ZJJ6Y","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00909,"epssPercentile":0.60627,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-0983","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0983","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-0983","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h2fw-93qx-vrcq","ok":true,"note":"GHSA-h2fw-93qx-vrcq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-0983","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}