CVE-2025-67847: Moodle affected by a code injection vulnerability
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.
Published Jan 23, 2026 · Updated Jan 26, 2026
Affected packages
moodle/moodle
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.1.0-beta, < 5.1.1
- Fixed in
- 5.1.1
- Check
composer show moodle/moodle
moodle/moodle
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.0.0-beta, < 5.0.4
- Fixed in
- 5.0.4
- Check
composer show moodle/moodle
moodle/moodle
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.5.0-beta, < 4.5.8
- Fixed in
- 4.5.8
- Check
composer show moodle/moodle
moodle/moodle
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.2.0-beta, < 4.4.12
- Fixed in
- 4.4.12
- Check
composer show moodle/moodle
moodle/moodle
- Ecosystem
- Composer (PHP)
- Affected
- < 4.1.22
- Fixed in
- 4.1.22
- Check
composer show moodle/moodle
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to asrar-mared, Seldaek.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-26045
Moodle has a Remote Code Execution risk via file restore
high7.2Feb 21, 2026CVE-2026-26047
Moodle TeX formula editor is vulnerable to DoS through lack of execution time limits
medium6.5Feb 21, 2026CVE-2025-67848
Moodle authentication bypass vulnerability
high8.1Feb 3, 2026CVE-2025-67849
Moodle Cross-site Scripting (XSS) vulnerability
high7.3Feb 3, 2026CVE-2025-67850
Moodle vulnerable to Cross-site Scripting
high7.3Feb 3, 2026CVE-2025-67851
Moodle formula injection vulnerability
medium6.1Feb 3, 2026
