{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-40314","id":"CVE-2022-40314","title":"Moodle remote code execution","description":"A remote code execution risk when restoring backup files originating from Moodle 1.9 was identified.","descriptionLong":"A remote code execution risk when restoring backup files originating from Moodle 1.9 was identified.","published":"2022-09-30T16:29:22.000Z","updated":"2026-10-28T02:30:29.518458926Z","reserved":"2022-09-09T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"fedora","metric":{"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","rating":"critical","source":"NVD"},"metrics":[{"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","rating":"critical","source":"NVD"},{"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","rating":"critical","source":"CISA-ADP"},{"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","rating":"critical","source":"OSV"},{"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","rating":"critical","source":"GitHub"}],"rating":"critical","products":["moodle"],"affectedProducts":[{"vendor":"n/a","product":"moodle","defaultStatus":null,"versions":[{"status":"affected","version":"4.0 to 4.0.3, 3.11 to 3.11.9, 3.9 to 3.9.16 and earlier unsupported versions"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"moodle/moodle","purl":"pkg:composer/moodle/moodle","ranges":["<3.9.17",">=3.11 <3.11.10",">=4.0 <4.0.4"],"fixed":["3.9.17","3.11.10","4.0.4"],"advisory":"GHSA-2hmm-q272-xmhf"}],"cwes":["CWE-502","CWE-94"],"aliases":["BIT-moodle-2022-40314","GHSA-2hmm-q272-xmhf"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2128147","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=438393","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40314.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40314","tags":["advisory"]},{"url":"https://github.com/moodle/moodle","tags":["package"]},{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-75405","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.02101,"epssPercentile":0.82087,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-40314","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40314","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-40314","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2hmm-q272-xmhf","ok":true,"note":"GHSA-2hmm-q272-xmhf"},{"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-40314","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}