Moodle affected by a code injection vulnerability
High severity
GitHub Reviewed
Published
Jan 23, 2026
to the GitHub Advisory Database
•
Updated Jan 26, 2026
Package
Affected versions
>= 5.1.0-beta, < 5.1.1
>= 5.0.0-beta, < 5.0.4
>= 4.5.0-beta, < 4.5.8
>= 4.2.0-beta, < 4.4.12
< 4.1.22
Patched versions
5.1.1
5.0.4
4.5.8
4.4.12
4.1.22
Description
Published by the National Vulnerability Database
Jan 23, 2026
Published to the GitHub Advisory Database
Jan 23, 2026
Reviewed
Jan 23, 2026
Last updated
Jan 26, 2026
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.
References