{"id":"CVE-2024-43425","published":"2024-11-07T13:21:59Z","modified":"2024-11-07T14:45:17Z","title":"Moodle: remote code execution via calculated question types","vendor":null,"product":null,"tier":"core","eol":null,"affectedVersions":[{"vendor":null,"product":null,"versions":["< 4.1.12",">= 4.2, < 4.2.9",">= 4.3, < 4.3.6",">= 4.4, < 4.4.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-11-07T14:41:20.305328Z","from":"CISA ADP","provenance":"source"},"description":{"text":"A flaw was found in Moodle. Additional restrictions are required to avoid a remote code execution risk in calculated question types. Note: This requires the capability to add/update questions.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is in Moodle's calculated question types, where missing restrictions allow code generated from question content to be executed remotely. An attacker who can add or update questions can exploit it over the network, without needing user interaction, to achieve remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T03:44:47Z"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.6716,"percentile":0.99488,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":3,"pulses":[{"name":"Spam “Broken Seal” DocuSign-themed Delivery w/Fileless Process Hollowing (Zeppelin/Bloat-A) by msudosos","url":"https://otx.alienvault.com/pulse/69bf64eccb5d39a90a3c391e","created":"2026-03-22"},{"name":"Spam “Broken Seal” DocuSign-themed Delivery w/Fileless Process Hollowing (Zeppelin/Bloat-A) by msudosos","url":"https://otx.alienvault.com/pulse/69bf64e1d5e06aa6207f78de","created":"2026-03-22"},{"name":"“Broken Seal” DocuSign-themed Delivery with Fileless Process Hollowing (Zeppelin/Bloat-A)","url":"https://otx.alienvault.com/pulse/698e93e1ab02db8c49e8c3ed","created":"2026-02-13"}],"provenance":"machine"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2304253","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=461193","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":["<4.1.12",">=4.2.0-beta, <4.2.9",">=4.3.0-beta, <4.3.6",">=4.4.0-beta, <4.4.2"],"patched":["4.1.12","4.2.9","4.3.6","4.4.2"],"from":["GHSA-v6f4-v8h8-3c87"],"provenance":"source"}],"advisories":[{"id":"GHSA-v6f4-v8h8-3c87","url":"https://github.com/advisories/GHSA-v6f4-v8h8-3c87","severity":"HIGH","ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":["<4.1.12"],"patched":["4.1.12"],"provenance":"source","from":"GHSA"},{"id":"GHSA-v6f4-v8h8-3c87","url":"https://github.com/advisories/GHSA-v6f4-v8h8-3c87","severity":"HIGH","ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=4.2.0-beta, <4.2.9"],"patched":["4.2.9"],"provenance":"source","from":"GHSA"},{"id":"GHSA-v6f4-v8h8-3c87","url":"https://github.com/advisories/GHSA-v6f4-v8h8-3c87","severity":"HIGH","ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=4.3.0-beta, <4.3.6"],"patched":["4.3.6"],"provenance":"source","from":"GHSA"},{"id":"GHSA-v6f4-v8h8-3c87","url":"https://github.com/advisories/GHSA-v6f4-v8h8-3c87","severity":"HIGH","ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=4.4.0-beta, <4.4.2"],"patched":["4.4.2"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-3314","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-3314","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":52350,"url":"https://www.exploit-db.com/exploits/52350","title":"Moodle 4.4.0 - Authenticated Remote Code Execution (RCE)","type":"webapps","platform":"php","date":"2025-07-02","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2025-07-02"},"pocGithub":{"count":3,"skipped":2,"earliest":"2024-08-23","earliestUrl":"https://github.com/RedTeamPentesting/moodle-rce-calculatedquestions","repos":[{"name":"RedTeamPentesting/moodle-rce-calculatedquestions","url":"https://github.com/RedTeamPentesting/moodle-rce-calculatedquestions","stars":19,"created":"2024-08-23"},{"name":"Snizi/Moodle-CVE-2024-43425-Exploit","url":"https://github.com/Snizi/Moodle-CVE-2024-43425-Exploit","stars":4,"created":"2025-02-07"},{"name":"kazuya256/Moodle-authenticated-RCE","url":"https://github.com/kazuya256/Moodle-authenticated-RCE","stars":2,"created":"2025-07-13"}]},"metasploit":[{"name":"Moodle Remote Code Execution (CVE-2024-43425)","module":"exploit/linux/http/moodle_rce","type":"exploit","disclosureDate":"2024-08-27","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/moodle_rce.rb"}],"nuclei":[{"id":"CVE-2024-43425","name":"Moodle - Remote Code Execution","severity":"critical","path":"http/cves/2024/CVE-2024-43425.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-43425.yaml"}],"first":{"date":"2024-08-23","source":"PoC-in-GitHub","url":"https://github.com/RedTeamPentesting/moodle-rce-calculatedquestions"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-08-23","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub; later: Metasploit 2024-08-27, Exploit-DB 2025-07-02","url":"https://github.com/RedTeamPentesting/moodle-rce-calculatedquestions","provenance":"source"},{"date":"2024-11-07","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-43425","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":31.9,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.9,"detail":"percentile 0.9949"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 3 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.37,"detail":"3 pulses"},{"name":"CVSS severity","points":5.67,"detail":"base score 8.1"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}