Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2018-1133 EUVD-2022-5790GHSA-xh2j-q4mc-v522

Moodle calculated question type allows remote code execution by Question authors

Published May 25, 2018 · Updated Aug 5, 2024 · Assigned by redhat

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

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
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