VDB
Sign up
HIGH7.2

GHSA-ggxq-2mg9-8966

Moodle has a Remote Code Execution risk via file restore

Quick fix

GHSA-ggxq-2mg9-8966 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^5.1.2

Details

A flaw was identified in Moodle’s backup restore functionality where specially crafted backup files were not properly validated during processing. If a malicious backup file is restored, it could lead to unintended execution of server-side code. Since restore capabilities are typically available to privileged users, exploitation requires authenticated access. Successful exploitation could result in full compromise of the Moodle server.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 5.1.0-betaFixed in: 5.1.2
Fixcomposer require moodle/moodle:^5.1.2
Packagist/moodle/moodle
Introduced in: 5.0.0-betaFixed in: 5.0.5
Fixcomposer require moodle/moodle:^5.0.5
Packagist/moodle/moodle
Introduced in: 0Fixed in: 4.5.9
Fixcomposer require moodle/moodle:^4.5.9

References