{"id":"GHSA-xh2j-q4mc-v522","aliases":["CVE-2018-1133"],"title":"Moodle calculated question type allows remote code execution by Question authors","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"An issue was discovered in Moodle 3.x. A Teacher creating a Calculated question can intentionally cause remote code execution on the server, aka eval injection.","severity":"high","score":8.8,"published":"2022-05-13T01:18:54.000Z","modified":"2024-04-23T23:58:48.583Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-xh2j-q4mc-v522","url":"https://osv.dev/vulnerability/GHSA-xh2j-q4mc-v522"}],"ranges":[{"events":[{"introduced":"3.1"},{"fixed":"3.1.12"}],"type":"ECOSYSTEM"}],"versions":["v3.1.0","v3.1.0-beta","v3.1.0-rc1","v3.1.0-rc2","v3.1.1","v3.1.10","v3.1.11","v3.1.2","v3.1.3","v3.1.4","v3.1.5","v3.1.6","v3.1.7","v3.1.8","v3.1.9"],"fixed":["3.1.12"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-xh2j-q4mc-v522","url":"https://osv.dev/vulnerability/GHSA-xh2j-q4mc-v522"}],"ranges":[{"events":[{"introduced":"3.2"},{"fixed":"3.2.9"}],"type":"ECOSYSTEM"}],"versions":["v3.2.0","v3.2.0-beta","v3.2.0-rc1","v3.2.0-rc2","v3.2.0-rc3","v3.2.0-rc4","v3.2.0-rc5","v3.2.1","v3.2.2","v3.2.3","v3.2.4","v3.2.5","v3.2.6","v3.2.7","v3.2.8"],"fixed":["3.2.9"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-xh2j-q4mc-v522","url":"https://osv.dev/vulnerability/GHSA-xh2j-q4mc-v522"}],"ranges":[{"events":[{"introduced":"3.3"},{"fixed":"3.3.6"}],"type":"ECOSYSTEM"}],"versions":["v3.3.0","v3.3.0-beta","v3.3.0-rc1","v3.3.0-rc2","v3.3.0-rc3","v3.3.1","v3.3.2","v3.3.3","v3.3.4","v3.3.5"],"fixed":["3.3.6"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-xh2j-q4mc-v522","url":"https://osv.dev/vulnerability/GHSA-xh2j-q4mc-v522"}],"ranges":[{"events":[{"introduced":"3.4"},{"fixed":"3.4.3"}],"type":"ECOSYSTEM"}],"versions":["v3.4.0","v3.4.0-beta","v3.4.0-rc1","v3.4.0-rc2","v3.4.0-rc3","v3.4.1","v3.4.2"],"fixed":["3.4.3"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2018-1133","https://github.com/moodle/moodle","https://moodle.org/mod/forum/discuss.php?d=371199","https://www.exploit-db.com/exploits/46551","http://www.securityfocus.com/bid/104307"],"sources":[{"name":"OSV","id":"GHSA-xh2j-q4mc-v522","modified":"2024-04-23T23:58:48.583210Z","url":"https://osv.dev/vulnerability/GHSA-xh2j-q4mc-v522"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-29T01:00:32.443Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[{"source":"Exploit-DB","id":"46551","url":"https://www.exploit-db.com/exploits/46551","checkedAt":"2026-10-29T00:00:35.338Z"}]}