CVE-2026-61578: 
PHP vulnerability analysis and mitigation

Overview

CVE-2026-61578 is an arbitrary file deletion vulnerability (path traversal / unvalidated input to unlink()) in the cleandeletedfiles plugin shipped with Chamilo LMS. The flaw affects all 1.11.x releases prior to 1.11.40 and version 2.0.0. It was discovered by researcher Mathieu Farrell (credited to QbVulnReport), disclosed via a GitHub Security Advisory on July 7, 2026, and published to NVD on November 18, 2026. It carries a CVSS v4.0 base score of 7.0 (High) (GitHub Advisory, Feedly).

Technical details

The root cause is improper limitation of a pathname to a restricted directory (CWE-22) combined with external control of file name or path (CWE-73). The vulnerable AJAX endpoints — plugin/cleandeletedfiles/src/ajax.php (1.11.x) and public/plugin/CleanDeletedFiles/src/ajax.php (2.0.0) — pass the user-supplied path and list request parameters directly to PHP's unlink() function without canonicalization, filename validation, or confinement to the plugin's intended scan directories (app/courses, app/upload). Exploitation requires an authenticated administrator session, but a cross-site request forgery (CSRF) attack against an active admin session can bypass this requirement, lowering the effective barrier. The fix (commit 7521206) introduces a cleanDeletedFilesResolvePath() function that uses realpath(), enforces a DELETED-in-filename requirement, and restricts deletions to allowed base directories (GitHub Advisory, Fix Commit).

Impact

A successful exploit allows an authenticated administrator — or any attacker who can forge a request against an admin session via CSRF — to delete arbitrary files writable by the web server process. Targeted files can include application source code, uploaded course content, cache files, and configuration files, resulting in data loss and denial of service. While confidentiality impact is assessed as none (no data is read or exfiltrated), integrity and availability are both rated High, as critical application files can be permanently destroyed (GitHub Advisory, Feedly).

Exploitability

No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been identified as of the time of this report. The EPSS score is 0.0, and the vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires either a valid administrator account or a successful CSRF attack against an active admin session, which moderately limits opportunistic exploitation. The vulnerability was covered in a Quarkslab blog post discussing multiple Chamilo LMS security issues, which may increase researcher and attacker awareness (Feedly, Quarkslab Blog).

Exploitation steps

  1. Reconnaissance: Identify Chamilo LMS instances running versions prior to 1.11.40 or version 2.0.0 with the cleandeletedfiles plugin enabled, using web fingerprinting tools or by checking publicly accessible version indicators.
  2. Obtain admin access or craft CSRF payload: Either authenticate as an administrator directly, or craft a malicious HTML page containing a CSRF payload targeting the admin's active session (e.g., an auto-submitting form or JavaScript fetch request).
  3. Identify target file: Determine the absolute path of a sensitive file writable by the web server (e.g., a configuration file like app/config/configuration.php, a .htaccess file, or application source files).
  4. Send malicious request: Issue an HTTP POST or GET request to plugin/cleandeletedfiles/src/ajax.php (1.11.x) or public/plugin/CleanDeletedFiles/src/ajax.php (2.0.0) with the action parameter set to delete-file and the path parameter set to the target file's absolute path (e.g., a=delete-file&path=/var/www/chamilo/app/config/configuration.php).
  5. Achieve denial of service or further compromise: The server calls unlink() on the supplied path, permanently deleting the file. Deleting configuration or source files can render the application inoperable or expose it to further attacks (GitHub Advisory, Fix Commit).

Indicators of compromise

  • Network: Unexpected HTTP requests (GET or POST) to plugin/cleandeletedfiles/src/ajax.php or public/plugin/CleanDeletedFiles/src/ajax.php with a=delete-file or a=delete-files-list actions and path or list parameters containing absolute paths outside the plugin's normal scan directories.
  • Logs: Web server access logs showing requests to the above endpoints with path parameters referencing configuration files (e.g., configuration.php), source files, or other sensitive locations; unusual admin activity at odd hours.
  • File System: Unexpected absence of critical files such as app/config/configuration.php, .htaccess, or application source files; missing uploaded course content or cache files that were not intentionally deleted.
  • Application Behavior: Chamilo LMS becoming inaccessible or throwing errors due to missing configuration or source files following suspicious admin activity.

Mitigation and workarounds

Upgrade Chamilo LMS to version 1.11.40 on the 1.11 release line, which includes the fix that adds path validation, realpath() canonicalization, a DELETED-in-filename requirement, and confinement to allowed directories (app/courses, app/upload). No fixed release exists for the 2.0.0 branch as of the advisory publication date — users on 2.0.0 should monitor the official repository for a patch. As a temporary workaround, administrators can disable or remove the cleandeletedfiles plugin entirely, or restrict web server write permissions to limit the scope of files that could be deleted. Additionally, implementing a web application firewall (WAF) rule to block requests to the plugin's AJAX endpoint from non-administrative IP ranges can reduce CSRF exposure (GitHub Advisory, v1.11.40 Release, Fix Commit).

Community reactions

Quarkslab published a blog post covering multiple Chamilo LMS vulnerabilities (titled "It's Raining 0days"), which brought broader attention to this and related issues in the platform (Quarkslab Blog). The vulnerability was also picked up in The Hacker News weekly recap and aggregated by several security intelligence feeds, indicating moderate community interest. No significant vendor statements beyond the GitHub Security Advisory have been identified.

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-r66h-vhqv-h27fHIGH8.3
  • PHP logoPHP
  • bubka/2fauth
NoYesNov 23, 2026
GHSA-qjrw-7726-v758HIGH7.1
  • PHP logoPHP
  • code16/sharp
NoYesNov 23, 2026
GHSA-835v-w4x6-rh9jMEDIUM6.5
  • PHP logoPHP
  • bubka/2fauth
NoYesNov 23, 2026
GHSA-c4w6-v59v-38v5LOWN/A
  • PHP logoPHP
  • yiisoft/validator
NoYesNov 23, 2026
GHSA-2gm6-xjf3-cqmmHIGHN/A
  • PHP logoPHP
  • exceedone/exment
NoYesNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management