{"id":"CVE-2018-1133","published":"2018-05-25T12:00:00Z","modified":"2024-08-05T03:51:48Z","title":"An issue was discovered in Moodle 3.x","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.30811,"percentile":0.98292,"provenance":"source"},"cwes":[],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=371199","tags":["x_refsource_CONFIRM"]},{"url":"https://www.exploit-db.com/exploits/46551/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://www.securityfocus.com/bid/104307","tags":["vdb-entry","x_refsource_BID"]}],"priority":{"score":24.7,"factors":[{"name":"EPSS percentile","points":19.66},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2019-03-15"},"pocGithub":{"count":2,"skipped":1,"earliest":"2019-03-15","earliestUrl":"https://github.com/darrynten/MoodleExploit","repos":[{"name":"darrynten/MoodleExploit","url":"https://github.com/darrynten/MoodleExploit","stars":10,"created":"2019-03-15"},{"name":"Feidao-fei/MOODLE-3.X-Remote-Code-Execution","url":"https://github.com/Feidao-fei/MOODLE-3.X-Remote-Code-Execution","stars":0,"created":"2020-12-26"}]},"first":{"date":"2019-03-15","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/46551"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"Moodle 3.x unknown","versions":["Moodle 3.x unknown"]}],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.1, <3.1.12",">=3.2, <3.2.9",">=3.3, <3.3.6",">=3.4, <3.4.3"],"patched":["3.1.12","3.2.9","3.3.6","3.4.3"],"from":["GHSA-xh2j-q4mc-v522"],"provenance":"source"}],"summary":{"text":"The flaw is an eval injection issue in Moodle 3.x, within the Calculated question type, which lets a user with the Teacher role inject code that the server then evaluates. An attacker holding Teacher privileges (authenticated access) could intentionally trigger remote code execution on the server by crafting a Calculated question, with no further user interaction or special configuration described.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:43:44Z"},"euvd":{"id":"EUVD-2022-5790","exploited":false,"provenance":"source"},"exploits":[{"id":46551,"url":"https://www.exploit-db.com/exploits/46551","title":"Moodle 3.4.1 - Remote Code Execution","date":"2019-03-15","verified":false,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/46551/","https://www.exploit-db.com/exploits/46551"]}