Skip to content
WatchlistHigh

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

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
ProductAffected versionsFixed in
MoodleMoodleSee advisory3.1.11
moodle/moodlecomposer>= 3.43.4.3
Moodle 3.x unknown>= Moodle 3.x unknownn/a

Patched Releases

Moodle

<=3.1.11

moodle/moodle

3.1.12, 3.2.9, 3.3.6, 3.4.3

Timeline

  1. Publicly disclosed

    May 13, 2022

  2. Last updated

    Jul 8, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

References

4 more references in the full CVE brief

FAQ

Common Questions.

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

Figures as of Oct 19, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.