Improper Control of Generation of Code ('Code Injection') Affecting moodle/moodle package, versions >=3.5, <3.5.16>=3.8, <3.8.7>=3.9, <3.9.4>=3.10, <3.10.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (41st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-MOODLEMOODLE-6673172
  • published24 Apr 2024
  • disclosed24 May 2022
  • creditFrédéric Massart

Introduced: 24 May 2022

CVE-2021-20187  (opens in a new tab)
CWE-829  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 3.5.16, 3.8.7, 3.9.4, 3.10.1 or higher.

Overview

moodle/moodle is a learning platform.

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') via a PHP include used during Shibboleth authentication. An attacker can execute arbitrary PHP scripts by exploiting the configuration settings for Shibboleth authentication. This is only exploitable if the attacker has site administrator privileges.

References

CVSS Scores

version 3.1