Arbitrary Code Injection Affecting moodle/moodle package, versions <4.5.9>=5.0.0-beta, <5.0.5>=5.1.0-beta, <5.1.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.55% (42nd 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-15366634
  • published1 Mar 2026
  • disclosed21 Feb 2026
  • creditMichael Hawkins

Introduced: 21 Feb 2026

CVE-2026-26045  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 4.5.9, 5.0.5, 5.1.2 or higher.

Overview

moodle/moodle is a learning platform.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the backup restore process. An attacker can execute arbitrary server-side code by uploading and restoring a specially crafted backup file. This is only exploitable if the attacker has authenticated access with restore capabilities.

CVSS Base Scores

version 4.0
version 3.1