Arbitrary Code Injection Affecting moodle/moodle package, versions >=4.1.0-beta, <4.1.18>=4.3.0-beta, <4.3.12>=4.4.0-beta, <4.4.8>=4.5.0-beta, <4.5.4


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (40th 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 Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MOODLEMOODLE-10188807
  • published21 May 2025
  • disclosed25 Apr 2025
  • creditVincent Schneider

Introduced: 25 Apr 2025

CVE-2025-3642  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 4.1.18, 4.3.12, 4.4.8, 4.5.4 or higher.

Overview

moodle/moodle is a learning platform.

Affected versions of this package are vulnerable to Arbitrary Code Injection through the EQUELLA repository integration. An attacker can execute arbitrary code by exploiting insufficient validation of user-supplied input in this component. This is only exploitable if the EQUELLA repository is enabled and the attacker has the role of a teacher or manager.

CVSS Base Scores

version 4.0
version 3.1