A flaw was found in Moodle in versions 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions. A remote code execution risk when restoring backup files was identified.
https://github.com/advisories/GHSA-8jhp-2gcr-qw96
https://moodle.org/mod/forum/discuss.php?d=429095