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-10188816
  • published21 May 2025
  • disclosed25 Apr 2025
  • creditVincent Schneider

Introduced: 25 Apr 2025

CVE-2025-3641  (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 via the Moodle LMS Dropbox repository. An attacker can execute arbitrary code by exploiting insufficient input validation and code sanitization mechanisms.

Note:

This is only exploitable if the Dropbox repository is enabled and the attacker has the role of a teacher or manager.

CVSS Base Scores

version 4.0
version 3.1