Improper Control of Generation of Code ('Code Injection') Affecting moodle/moodle package, versions <3.9.24>=3.10.0, <3.11.17>=4.0.0, <4.0.11>=4.1.0, <4.1.6>=4.2.0, <4.2.3>=4.3.0-beta, <4.3.0-rc2


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.4% (75th 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 Learn

Learn about Improper Control of Generation of Code ('Code Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MOODLEMOODLE-6054453
  • published10 Nov 2023
  • disclosed9 Nov 2023
  • creditVincent Schneider

Introduced: 9 Nov 2023

CVE-2023-5540  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 3.9.24, 3.11.17, 4.0.11, 4.1.6, 4.2.3, 4.3.0-rc2 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') in the IMSCP activity. An attacker can execute arbitrary code remotely by exploiting this vulnerability.

Note:

This is only exploitable if the attacker has teacher or manager privileges.

CVSS Scores

version 3.1