{"id":"CVE-2014-3545","aliases":["EUVD-2022-2209","GHSA-3m99-h3hp-w9j7","MGASA-2014-0308"],"status":"published","title":"Moodle remote code execution via quiz questions","description":"Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote authenticated users to execute arbitrary code via a calculated question in a quiz.","severity":{"version":"2.0","score":6,"vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01717,"percentile":0.77586,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2014-07-29T10:00:00Z","modified":"2026-06-17T00:08:27Z","fixes":[{"ecosystem":"Packagist","package":"moodle/moodle","fixed_in":["2.7.1","2.6.4","2.5.7","2.4.11"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.0"},{"last_affected":"2.7.0"},{"fixed":"2.7.1"}]}],"versions":["2.7.0"]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.0"},{"last_affected":"2.6.3"},{"fixed":"2.6.4"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0"},{"last_affected":"2.5.6"},{"fixed":"2.5.7"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0"},{"last_affected":"2.4.10"},{"fixed":"2.4.11"}]}]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.0"},{"fixed":"2.7.1"}]}],"versions":["2.7.0","v2.7.0"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.0"},{"fixed":"2.6.4"}]}],"versions":["v2.6.0","v2.6.1","v2.6.2","v2.6.3"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0"},{"fixed":"2.5.7"}]}],"versions":["v2.5.0","v2.5.1","v2.5.2","v2.5.3","v2.5.4","v2.5.5","v2.5.6"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0"},{"fixed":"2.4.11"}]}],"versions":["v2.4.0","v2.4.1","v2.4.10","v2.4.2","v2.4.3","v2.4.4","v2.4.5","v2.4.6","v2.4.7","v2.4.8","v2.4.9"]},{"source":"osv","ecosystem":"Mageia:3","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.4-1.mga3"}]}],"bundled":10},{"source":"osv","ecosystem":"Mageia:4","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.4-1.mga4"}]}],"bundled":10}],"products":[{"vendor":"moodle","product":"moodle"}],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=264266","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","web"]},{"url":"http://openwall.com/lists/oss-security/2014/07/21/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://git.moodle.org/gw?p=moodle.git\u0026a=search\u0026h=HEAD\u0026st=commit\u0026s=MDL-46148","tags":["x_refsource_CONFIRM","x_transferred","Patch","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2014-3545","tags":["advisory"]},{"url":"https://github.com/moodle/moodle/blob/1474f74687dda57c7d011b92d16f25b9870d2799/question/type/calculated/question.php#L426","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/155bc7547227dc2047cfc8630cbfe121888b359b","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/29005a5418894b76e62e44bbc2c9e4ddee8f5ce6","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/44f726a7b1d351b39bb2a6a30c1b30027fabd000","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/539a25ff03fae377758d62caefcc71a2418e9a84","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/5c6c172033e3fb4afce862f8b32b459f5c35ad19","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/66de66fe6a8ce8f491562edad0a14f26d4808cb4","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/770d3ce42669067eca2bcee22d142ed7fec08550","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/82b3260eab2db58dfa9510645fd2c60ee0ce142e","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/88ec9f308da6a4bc7a735458cdf72648357d501d","tags":["web"]},{"url":"https://github.com/advisories/GHSA-3m99-h3hp-w9j7"},{"url":"https://github.com/moodle/moodle","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2014-0308.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=13759","tags":["report"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=264262","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=264263","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=264264","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=264265","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=264267","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=264268","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=264269","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=264270","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=264273","tags":["web"]},{"url":"http://docs.moodle.org/dev/Moodle_2.6.4_release_notes","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2014-3545","description":"Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote authenticated users to execute arbitrary code via a calculated question in a quiz.","status":"published","published":"2014-07-29T10:00:00Z","modified":"2024-08-06T10:50:17.063Z","updated_at":"2026-11-02T14:33:44.569327Z"}],"euvd":[{"id":"EUVD-2022-2209","description":"Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote authenticated users to execute arbitrary code via a calculated question in a quiz.","status":"published","published":"2014-07-29T10:00:00Z","modified":"2024-08-06T10:50:17Z","updated_at":"2026-11-03T01:57:09.905604Z"}],"ghsa":[{"id":"GHSA-3m99-h3hp-w9j7","title":"Moodle remote code execution via quiz questions","description":"Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote authenticated users to execute arbitrary code via a calculated question in a quiz.","status":"published","published":"2022-05-13T01:12:40Z","modified":"2024-01-24T19:19:15Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:37:32.302254Z"}],"nvd":[{"id":"CVE-2014-3545","description":"Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote authenticated users to execute arbitrary code via a calculated question in a quiz.","status":"published","published":"2014-07-29T11:10:32.183Z","modified":"2026-06-17T00:08:27.477Z","cvss":[{"version":"2.0","score":6,"vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:02:55.19899Z"}],"osv":[{"id":"GHSA-3m99-h3hp-w9j7","title":"Moodle remote code execution via quiz questions","description":"Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote authenticated users to execute arbitrary code via a calculated question in a quiz.","status":"published","published":"2022-05-13T01:12:40Z","modified":"2024-12-07T05:33:40.299588Z","cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:35.747385Z"},{"id":"MGASA-2014-0308","title":"Updated moodle package fixes security vulnerabilities","description":"In Moodle before 2.6.4, serialised data passed by repositories could\npotentially contain objects defined by add-ons that could include executable\ncode (CVE-2014-3541).\n\nIn Moodle before 2.6.4, it was possible for manipulated XML files passed from\nLTI servers to be interpreted by Moodle to allow access to server-side files\n(CVE-2014-3542).\n\nIn Moodle before 2.6.4, it was possible for manipulated XML files to be\nuploaded to the IMSCC course format or the IMSCP resource to allow access to\nserver-side files (CVE-2014-3543).\n\nIn Moodle before 2.6.4, filtering of the Skype profile field was not removing\npotentially harmful code (CVE-2014-3544).\n\nIn Moodle before 2.6.4, it was possible to inject code into Calculated\nquestions that would be executed on the server (CVE-2014-3545).\n\nIn Moodle before 2.6.4, it was possible to get limited user information,\nsuch as user name and courses, by manipulating the URL of profile and notes\npages (CVE-2014-3546).\n\nIn Moodle before 2.6.4, the details of badges from external sources were not\nbeing filtered (CVE-2014-3547).\n\nIn Moodle before 2.6.4, content of exception dialogues presented from AJAX\ncalls was not being escaped before being presented to users (CVE-2014-3548).\n\nIn Moodle before 2.6.4, fields in rubrics were not being correctly filtered\n(CVE-2014-3551).\n\nIn Moodle before 2.6.4, forum was allowing users who were members of more\nthan one group to post to all groups without the capability to access all\ngroups (CVE-2014-3553).\n\nThe moodle package has been updated to version 2.6.4, to fix these issues\nand other bugs.\n","status":"published","published":"2014-08-05T20:08:48Z","modified":"2026-04-16T06:24:39.334873342Z","updated_at":"2026-11-02T15:49:39.488462Z"}]}}
