{"id":"CVE-2022-0332","aliases":["CVE-2022-0332","GHSA-6jhm-4vmx-mr76","BIT-MOODLE-2022-0332"],"related":[],"kind":"vulnerability","state":"published","title":"SQL injection in Moodle","summary":"A flaw was found in Moodle in versions 3.11 to 3.11.4. An SQL injection risk was identified in the h5p activity web service responsible for fetching user attempt data.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in Moodle in versions 3.11 to 3.11.4. An SQL injection risk was identified in the h5p activity web service responsible for fetching user attempt data.","source":"cvelist"},{"lang":"es","text":"Se encontró un fallo en Moodle versiones 3.11 a 3.11.4. Se identificó un riesgo de inyección SQL en el servicio web de actividades h5p, responsable de conseguir los datos de los intentos de los usuarios","source":"nvd"}],"published":"2022-01-25T19:11:10.000Z","modified":"2026-09-08T08:48:14.543Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"moodle 3.11.5","status":"affected"}],"product":"moodle","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.11","status":"affected","fixed":"3.11.5"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.11.0","fixed":"3.11.5"}],"vendor":"moodle","product":"moodle","cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.5"}],"ecosystem":"Bitnami","package":"moodle","purl":"pkg:bitnami/moodle","source":"bitnami"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2043661","tags":["advisory","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=431099","tags":["advisory","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0332","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/moodle/moodle/commit/c7a62a8c82219b50589257f79021da1df1a76808","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/moodle/moodle","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"fedora","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-0332","url":"https://www.cve.org/CVERecord?id=CVE-2022-0332","licence":"CVE Terms of Use","modified":"2024-08-02T23:25:40.155Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6jhm-4vmx-mr76","url":"https://github.com/advisories/GHSA-6jhm-4vmx-mr76","licence":"CC-BY-4.0","modified":"2024-02-19T05:25:42.466Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-0332","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0332","licence":"Public domain","modified":"2026-06-17T04:20:24.620Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MOODLE-2022-0332","url":"https://osv.dev/vulnerability/BIT-MOODLE-2022-0332","licence":"Apache-2.0","modified":"2026-09-08T08:48:14.543Z"}],"updatedAt":"2026-11-25T22:58:09.407Z","epss":{"score":0.32094,"percentile":0.98346,"date":"2026-12-01T12:00:22.000Z"}}