title: Rce due to lfi risk in some misconfigured shared hosting environments
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.
problem types: Improper Control of Generation of Code ('Code Injection')
affected:
{
product: moodle
vendor: n/a
versions:
version: 4.2.3, status: unaffected
version: 4.1.6, status: unaffected
version: 4.0.11, status: unaffected
version: 3.11.17, status: unaffected
version: 3.9.24, status: unaffected
}
{
product: Extra Packages for Enterprise Linux 7
vendor: Fedora
collectionURL: https://packages.fedoraproject.org/
packageName: moodle
defaultStatus: affected
}
{
product: Fedora
vendor: Fedora
collectionURL: https://packages.fedoraproject.org/
packageName: moodle
defaultStatus: affected
}
metrics:
other: [
content: {'value': 'Moderate', 'namespace': 'https://access.redhat.com/security/updates/classification/'}
type: Red Hat severity rating
]