CVE-2026-61584: 
Chamilo vulnerability analysis and mitigation

Overview

CVE-2026-61584 is a path traversal vulnerability in Chamilo LMS that allows authenticated course users to create arbitrary directories outside the intended course storage tree. The vulnerability exists in main/inc/ajax/record_audio_rtc.ajax.php, which concatenates a user-controlled audio_dir parameter with the course document root and passes it to mkdir() without path normalization. It affects Chamilo LMS versions prior to 1.11.40 (specifically confirmed in version 1.11.36). The vulnerability was disclosed on July 8, 2026, and fixed in version 1.11.40 released on June 24, 2026. It carries a CVSS v4.0 base score of 5.3 (Medium) (GitHub Advisory, Feedly).

Technical details

The root cause is improper limitation of a pathname to a restricted directory (CWE-22 / Path Traversal). In record_audio_rtc.ajax.php, the audio_dir request parameter is sanitized only with XSS removal via Security::remove_XSS() before being concatenated with the course document root path and passed to PHP's mkdir(..., true) with recursive creation enabled — but without any normalization to strip ../ sequences or absolute path components. An authenticated course user (e.g., a student) can supply a crafted audio_dir value such as ../../../../../../var/www/html/malicious to cause directory creation anywhere the web server process has write permission. The fix, applied in commit 5fe0d53, strips empty segments, ., and .. from the path before use, ensuring only relative subdirectory names within the course tree are accepted (GitHub Advisory, Fix Commit).

Impact

Successful exploitation allows an authenticated attacker to create arbitrary directories anywhere on the filesystem that the web server account can write to, potentially disrupting application layout or enabling follow-on attacks. While this endpoint alone does not write attacker-controlled file content outside the course tree, the ability to pre-create directories can serve as a staging primitive for chained file-write or code-execution exploits. Integrity and availability of the application are the primary concerns, with no direct confidentiality impact from this vulnerability alone (GitHub Advisory, Feedly).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for this vulnerability. The EPSS score is 0.0, and NVD's SSVC assessment classifies exploitation as "none" and the vulnerability as not automatable. The vulnerability requires authentication as a course user (student-level), which limits the attack surface. It is not listed in the CISA Known Exploited Vulnerabilities catalog (Feedly, GitHub Advisory).

Exploitation steps

  1. Authenticate: Log in to the target Chamilo LMS instance as any enrolled course user (student-level access is sufficient).
  2. Identify the vulnerable endpoint: Locate the audio recording AJAX endpoint at main/inc/ajax/record_audio_rtc.ajax.php.
  3. Craft the malicious request: Send an HTTP POST or GET request to the endpoint with a manipulated audio_dir parameter containing path traversal sequences, e.g., audio_dir=../../../../../../var/www/html/attacker_dir.
  4. Trigger directory creation: The server concatenates the unsanitized audio_dir value with the course document root and calls mkdir(..., true), recursively creating the attacker-specified directory path wherever the web server account has write permission.
  5. Stage follow-on attack: Use the newly created directory as a staging area for a separate file-write vulnerability or misconfiguration to place a web shell or malicious file, potentially achieving code execution (GitHub Advisory, Fix Commit).

Indicators of compromise

  • Network: Unusual HTTP requests to main/inc/ajax/record_audio_rtc.ajax.php with audio_dir parameter values containing ../, ..\, or absolute path strings (e.g., /var/www, /etc).
  • File System: Unexpected directories created outside the Chamilo course document root (e.g., under /var/www/html/, /tmp/, or other web-accessible paths) owned by the web server account.
  • Logs: Web server access logs showing POST/GET requests to record_audio_rtc.ajax.php with encoded or raw traversal sequences in the audio_dir parameter; PHP error logs showing mkdir() calls to unusual paths.

Mitigation and workarounds

Upgrade Chamilo LMS to version 1.11.40 or later, which neutralizes path traversal in the audio_dir parameter by stripping empty segments, ., and .. before directory creation (GitHub Release, Fix Commit). As a temporary workaround, restrict web server write permissions to only the intended course document directories to limit the impact of arbitrary directory creation. Additionally, consider restricting access to the record_audio_rtc.ajax.php endpoint via web server configuration if audio recording functionality is not required.

Community reactions

The vulnerability was researched and reported by Mathieu Farrell (credited as QbVulnReport) and disclosed via GitHub Security Advisories on July 8, 2026. A technical blog post was published by Quarkslab covering Chamilo LMS vulnerabilities including this issue (Quarkslab Blog). The Hacker News weekly recap for the relevant period also referenced the Chamilo vulnerabilities (The Hacker News).

Additional resources


Source: This report was generated using AI

Related Chamilo vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61532CRITICAL9
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026
CVE-2026-61583HIGH8.7
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026
CVE-2026-61578HIGH7
  • PHP logoPHP
  • chamilo/chamilo-lms
NoYesNov 18, 2026
CVE-2026-61582MEDIUM6.4
  • PHP logoPHP
  • chamilo/chamilo-lms
NoYesNov 18, 2026
CVE-2026-61584MEDIUM5.3
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 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