PHP file inclusion in Moodle - CVE-2021-20187

 

PHP file inclusion in Moodle - CVE-2021-20187

Published: January 25, 2021


Vulnerability identifier: #VU49972
CSH Severity: Medium
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-20187
CWE-ID: CWE-98
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote administrator to include and execute arbitrary PHP files on the server.

The vulnerability exists due to incorrect input validation when including PHP files during Shibboleth authentication. A remote administrator can include and execute arbitrary PHP code on the system with privileges of the web server.


Affected software

Moodle

How to mitigate CVE-2021-20187

Install updates from vendor's website.

Moodle - addressed in versions 3.5.16, 3.8.7, 3.9.4, 3.10.1

External References

Related Security Bulletins