{"schemaVersion":3,"id":"CVE-2021-21809","aliases":["UBUNTU-CVE-2021-21809"],"status":"published","duplicateOf":null,"title":null,"description":"A command execution vulnerability exists in the default legacy spellchecker plugin in Moodle 3.10. A specially crafted series of HTTP requests can lead to command execution. An attacker must have administrator privileges to exploit this vulnerabilities.","dates":{"published":"2021-06-23T21:25:46.000Z","modified":"2024-08-03T18:23:29.453Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":8.2,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":5.9,"impact":10,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.2,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:L","exploitability":5.9,"impact":8.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.2,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9,"severity":"high","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.24173,"percentile":0.9784,"severity":"high","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.24173},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.24173,"percentile":0.9784}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.24173,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.24173,"percentile":0.9784}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_EBEFA78D8484A712","name":"Exploit Reference (talosintelligence.com)","source":"reference","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1277","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_0B0F555A8722CFF5","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/164481/Moodle-SpellChecker-Path-Authenticated-Remote-Command-Execution.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_EXPLOIT_MULTI_HTTP_MOODLE_SPELLING_PATH_RCE","name":"Moodle SpellChecker Path Authenticated Remote Command Execution","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/multi/http/moodle_spelling_path_rce.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":true,"exploitdb":null,"metasploit":{"fullname":"exploit/multi/http/moodle_spelling_path_rce","rank":"600","rankName":"excellent","postAuth":true,"check":true,"stability":["crash-safe"],"sideEffects":["config-changes","ioc-in-logs"],"reliability":["repeatable-session"]}}],"exploitCount":3,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"ubuntu","product":"moodle","name":"moodle","label":"moodle","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/moodle","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"moodle","product":"moodle","name":"moodle","label":"moodle","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.10.0","eol":{"isEol":true,"eolDate":"2022-05-09T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"3.10","label":"3.10","eolFrom":"2022-05-09T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"3.10.11"},"product":{"name":"moodle","label":"Moodle","category":"server-app"}},"hubHref":"/vendor/moodle/moodle"}],"affectedCount":2,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1277","label":"talosintelligence.com/vulnerability_reports/TALOS-2021-1277","hostname":"talosintelligence.com","tags":["X Refsource MISC","REPORT","Exploit","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/164481/Moodle-SpellChecker-Path-Authenticated-Remote-Command-Execution.html","label":"packetstormsecurity.com/files/…","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://ubuntu.com/security/CVE-2021-21809","label":"ubuntu.com/security/CVE-2021-21809","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21809","label":"www.cve.org/CVERecord?id=CVE-2021-21809","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-06-23T21:25:46.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:23:29.453Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T10:10:08.361Z","stale":false,"partial":false}}