VDB
Sign up
HIGH8.8

GHSA-xvmh-25jw-gmmm

Moodle affected by a code injection vulnerability

Quick fix

GHSA-xvmh-25jw-gmmm — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^5.1.1

Details

A flaw was found in Moodle. An attacker with access to the restore interface could trigger server-side execution of arbitrary code. This is due to insufficient validation of restore input, which leads to unintended interpretation by core restore routines. Successful exploitation could result in a full compromise of the Moodle application.

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.1
Fixcomposer require moodle/moodle:^5.1.1
Packagist/moodle/moodle
Introduced in: 5.0.0-betaFixed in: 5.0.4
Fixcomposer require moodle/moodle:^5.0.4
Packagist/moodle/moodle
Introduced in: 4.5.0-betaFixed in: 4.5.8
Fixcomposer require moodle/moodle:^4.5.8
Packagist/moodle/moodle
Introduced in: 4.2.0-betaFixed in: 4.4.12
Fixcomposer require moodle/moodle:^4.4.12
Packagist/moodle/moodle
Introduced in: 0Fixed in: 4.1.22
Fixcomposer require moodle/moodle:^4.1.22

References