CVE-2018-1133Moodle Code Injection
Moodle calculated question type allows remote code execution by Question authors
Published May 13, 2022 · Updated Jul 8, 2026 · Also known as GHSA-xh2j-q4mc-v522, UBUNTU-CVE-2018-1133
Key Facts
Patch immediately- CVE-2018-1133 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Moodle, moodle/moodle (composer), Moodle 3.x unknown.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 31% probability of exploitation in the next 30 days.
- Fixed versions are available, including Moodle <=3.1.11, moodle/moodle 3.1.12, moodle/moodle 3.2.9.
- Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Scores
CVSS v3.1
8.8
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
31%
Higher than 98.2% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
47/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
2
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
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
5 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| MoodleMoodle | See advisory | 3.1.11 |
| moodle/moodlecomposer | >= 3.4 | 3.4.3 |
| Moodle 3.x unknown | >= Moodle 3.x unknown | n/a |
Patched Releases
Moodle
<=3.1.11
moodle/moodle
3.1.12, 3.2.9, 3.3.6, 3.4.3
Timeline
Publicly disclosed
May 13, 2022
Last updated
Jul 8, 2026
Weakness Type
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- advisorynvd.nist.gov · CVE-2018-1133
- advisoryubuntu.com · CVE-2018-1133
- advisorycve.org · CVERecord
- advisoryGHSA advisory
- advisory104307
FAQ
Common Questions.
An issue was discovered in Moodle 3.x.
Affected: Moodle; moodle/moodle (composer) versions >= 3.4; Moodle 3.x unknown versions >= Moodle 3.x unknown. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Moodle <=3.1.11, moodle/moodle 3.1.12, moodle/moodle 3.2.9.
Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Is CVE-2018-1133 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo