Improper Control of Generation of Code ('Code Injection') Affecting moodle/moodle package, versions <2.4.11>=2.5.0, <2.5.7>=2.6.0, <2.6.4>=2.7.0, <2.7.1


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
4.53% (93rd 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-6226899
  • published2 Feb 2024
  • disclosed13 May 2022
  • creditRobin Bailey

Introduced: 13 May 2022

CVE-2014-3541  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 2.4.11, 2.5.7, 2.6.4, 2.7.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 the Repositories component. An attacker can execute arbitrary code by providing malicious serialized data associated with an add-on.

CVSS Scores

version 3.1