{"id":"CVE-2021-36393","published":"2023-03-06T00:00:00Z","modified":"2025-03-06T15:45:34Z","title":"In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses","vendor":null,"product":null,"tier":"core","eol":null,"affectedVersions":[{"vendor":"n/a","product":"Moodle","versions":["3.11, 3.10 to 3.10.4, 3.9 to 3.9.7 and earlier unsupported versions"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-03-06T15:45:19.973198Z","from":"CISA ADP","provenance":"source"},"description":{"text":"In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses.","provenance":"source","from":"CVE.org"},"summary":{"text":"An SQL injection flaw exists in the Moodle library that fetches a user's recent courses.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:01:46Z"},"cvss":null,"epss":{"score":0.70747,"percentile":0.99569,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=424798","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.11.0-beta, <3.11.1",">=3.10.0-beta, <3.10.5","<3.9.8"],"patched":["3.11.1","3.10.5","3.9.8"],"from":["GHSA-f46j-r7q3-6cm2"],"provenance":"source"}],"advisories":[{"id":"GHSA-f46j-r7q3-6cm2","url":"https://github.com/advisories/GHSA-f46j-r7q3-6cm2","severity":"CRITICAL","ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.11.0-beta, <3.11.1"],"patched":["3.11.1"],"provenance":"source","from":"GHSA"},{"id":"GHSA-f46j-r7q3-6cm2","url":"https://github.com/advisories/GHSA-f46j-r7q3-6cm2","severity":"CRITICAL","ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.10.0-beta, <3.10.5"],"patched":["3.10.5"],"provenance":"source","from":"GHSA"},{"id":"GHSA-f46j-r7q3-6cm2","url":"https://github.com/advisories/GHSA-f46j-r7q3-6cm2","severity":"CRITICAL","ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":["<3.9.8"],"patched":["3.9.8"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2023-0991","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-0991","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":51984,"url":"https://www.exploit-db.com/exploits/51984","title":"Moodle 3.10.1 - Authenticated Blind Time-Based SQL Injection (SQLi) - _sort_ Parameter","type":"webapps","platform":"php","date":"2024-04-12","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2024-04-12"},"pocGithub":{"count":1,"skipped":0,"earliest":"2023-10-27","earliestUrl":"https://github.com/StackOverflowExcept1on/CVE-2021-36393","repos":[{"name":"StackOverflowExcept1on/CVE-2021-36393","url":"https://github.com/StackOverflowExcept1on/CVE-2021-36393","stars":4,"created":"2023-10-27"}]},"first":{"date":"2023-10-27","source":"PoC-in-GitHub","url":"https://github.com/StackOverflowExcept1on/CVE-2021-36393"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2023-03-06","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2021-36393","provenance":"source"},{"date":"2023-10-27","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub; later: Exploit-DB 2024-04-12","url":"https://github.com/StackOverflowExcept1on/CVE-2021-36393","provenance":"source"}],"speed":{"daysToPublicExploit":235,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":24.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.91,"detail":"percentile 0.9957"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 1 PoC-in-GitHub repo"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}