CVE-2026-61578: Chamilo LMS CleanDeletedFiles plugin permits arbitrary file deletion
Chamilo LMS is an open-source learning management system. Prior to 1.11.40 on the 1.11 release line and in 2.0.0, plugin/cleandeletedfiles/src/ajax.php and public/plugin/CleanDeletedFiles/src/ajax.php pass the request path parameter and list parameter directly to unlink without canonicalization, filename validation, or confinement to the plugin's scanned directories. An authenticated administrator can delete arbitrary files writable by the web server; a cross-site request forgery against an administrator session can reach the same operation. Deleting application source, uploaded content, cache, or configuration files can cause data loss and denial of service. This issue is fixed in version 1.11.40 on the 1.11 release line. No fixed 2.0 release is established as of this review.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.11.40
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated Chamilo administrator can invoke the vulnerable deletion operation. An attacker may also exploit it through cross-site request forgery if they can cause a logged-in administrator to send the request.
What files can be deleted?
The operation can delete arbitrary files that are writable by the web server, rather than being limited to the plugin's intended scanned directories. This can include application source, uploaded content, cache, and configuration files.
Which releases are affected or fixed?
Affected versions include releases before 1.11.40 on the 1.11 release line and version 2.0.0. Version 1.11.40 fixes the issue for the 1.11 line; no fixed 2.0 release had been established at the time of review.
What is the impact of successful exploitation?
Successful exploitation can cause data loss and denial of service by deleting files needed for application operation, configuration, cached data, or user-uploaded content.