Vulnerability · Published Nov 9, 2023 · Assigned by fedora
CVE-2023-5550Moodle: rce due to lfi risk in some misconfigured shared hosting environments
Medium 6.5
In plain English
A medium-severity code injection in moodle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)1.6%top 23.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
In a shared hosting environment that has been misconfigured to allow access to other users' content, a Moodle user who also has direct access to the web server outside of the Moodle webroot could utilise a local file include to achieve remote code execution.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | moodle/moodle | 4.3.0-rc2 | GHSA-5cvx-cwpx-9rjh |
| Packagist | moodle/moodle | 4.2.3 | GHSA-5cvx-cwpx-9rjh |
| Packagist | moodle/moodle | 4.1.6 | GHSA-5cvx-cwpx-9rjh |
| Packagist | moodle/moodle | 4.0.11 | GHSA-5cvx-cwpx-9rjh |
| Packagist | moodle/moodle | 3.11.17 | GHSA-5cvx-cwpx-9rjh |
| Packagist | moodle/moodle | 3.9.24 | GHSA-5cvx-cwpx-9rjh |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| moodle | 4.2.0 – before 4.2.34.1.0 – before 4.1.64.0.0 – before 4.0.113.11.0 – before 3.11.170 – before 3.9.24 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
References
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72249
- RHBZ#2243452 issue-tracking, x_refsource_REDHAT
- https://moodle.org/mod/forum/discuss.php?d=451591