Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Moodle 3.x unknown | Moodle 3.x unknown | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | moodle | No fix yet | — |
| Ubuntu Pro 16.04 LTS | moodle | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Moodle 3.4.1 - Remote Code Execution EDB-46551 · webapps · Mar 15, 2019
GitHub 3 repositories
-
darrynten/MoodleExploit ★ 10 · Mar 15, 2019
Noodle [Moodle RCE] (v3.4.1) - CVE-2018-1133
-
That-Guy-Steve/CVE-2018-1133-Exploit ★ 0 · Dec 20, 2023
-
Feidao-fei/MOODLE-3.X-Remote-Code-Execution ★ 0 · Dec 26, 2020
cve-2018-1133 moodle athenticated as teacher remote code execution.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | moodle/moodle | >= 3.1, < 3.1.12 | 3.1.12 | GHSA-xh2j-q4mc-v522 |
| Packagist | moodle/moodle | >= 3.2, < 3.2.9 | 3.2.9 | GHSA-xh2j-q4mc-v522 |
| Packagist | moodle/moodle | >= 3.3, < 3.3.6 | 3.3.6 | GHSA-xh2j-q4mc-v522 |
| Packagist | moodle/moodle | >= 3.4, < 3.4.3 | 3.4.3 | GHSA-xh2j-q4mc-v522 |
References
- https://moodle.org/mod/forum/discuss.php?d=371199
- 46551 exploit
- 104307 vdb-entry