
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-61583 is an authenticated remote code execution (RCE) vulnerability in Chamilo LMS caused by unrestricted upload of dangerous file types in the course dropbox feature. The vulnerability affects Chamilo LMS versions prior to 1.11.40 (confirmed vulnerable through 1.11.38 and 1.11.36). It was discovered by researcher Sean Matthews, published in the GitHub Security Advisory on July 7, 2026, and formally disclosed via NVD on November 18, 2026. The vulnerability carries a CVSS v4.0 base score of 8.7 (High) (GitHub Advisory, Feedly).
The root cause is an unrestricted file upload flaw (CWE-434) in main/dropbox/dropbox_functions.inc.php, specifically in the store_add_dropbox() function, which applied only php2phps() sanitization — renaming .php files to .phps — but did not neutralize .htaccess filenames. Because the dropbox directory is served directly by Apache under a root rewrite catch-all, and Chamilo requires AllowOverride All, an uploaded .htaccess file is applied by Apache to that directory. An attacker first uploads a malicious .htaccess file (e.g., instructing Apache to treat .gif files as PHP), then uploads a PHP webshell disguised as a .gif image via the same endpoint (main/inc/ajax/dropbox.ajax.php?a=upload_file), achieving code execution as the web-server user. The attack requires only a low-privilege authenticated session (any enrolled course participant) with the dropbox tool enabled, which is the default configuration (GitHub Advisory, Patch Commit).
Successful exploitation grants the attacker remote code execution as the web-server user (typically www-data), enabling full read/write access to the Chamilo installation directory, all course content, and database credentials stored in app/config/configuration.php. An attacker can plant persistent backdoors, exfiltrate sensitive student and instructor data, and potentially pivot to the underlying database server. The advisory also notes this vulnerability can be chained with a pre-authentication SQL injection or an unauthenticated administrator-takeover flaw to achieve effective pre-authentication RCE (GitHub Advisory).
As of the disclosure date, there is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation (Feedly). The EPSS score is reported at 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the attack is straightforward for any authenticated course participant, requiring no special tools beyond a standard HTTP client, making it a low-complexity exploit once an attacker has course enrollment. No specific threat actor attribution has been reported.
.htaccess file that instructs Apache to execute .gif files as PHP, e.g.:AddType application/x-httpd-php .gifmain/inc/ajax/dropbox.ajax.php?a=upload_file with the .htaccess file as the upload payload. The vulnerable store_add_dropbox() function stores it unchanged in the course dropbox directory.shell.gif containing a PHP webshell, e.g.:<?php system($_GET['cmd']); ?>shell.gif via the same dropbox upload endpoint.shell.gif via its URL in the Apache-served dropbox directory. Apache, now instructed by the attacker's .htaccess, executes it as PHP, providing RCE as the web-server user.app/config/configuration.php for database credentials, establish a persistent backdoor, or pivot further (GitHub Advisory).main/inc/ajax/dropbox.ajax.php?a=upload_file with filenames .htaccess or files with double extensions (e.g., *.gif containing PHP code); HTTP GET requests to dropbox directory paths for .gif or other non-PHP files returning PHP execution output..htaccess files inside course dropbox directories (e.g., courses/<COURSE_CODE>/dropbox/.htaccess); .gif, .jpg, or other image-extension files in dropbox directories containing PHP code (<?php).dropbox.ajax.php with suspicious filenames; subsequent GET requests to dropbox-served files returning unexpected content-types or HTTP 200 responses with command output.bash, sh, curl, wget, python) originating from the web-server user (www-data) (GitHub Advisory).The primary fix is to upgrade Chamilo LMS to version 1.11.40 or later, which replaces the php2phps() call with disable_dangerous_file() in store_add_dropbox(), neutralizing .htaccess uploads by renaming them to htaccess.txt (Patch Commit, Release v1.11.40). Note that Chamilo 2.0.0 is not affected as the legacy dropbox tool has been removed. For organizations unable to upgrade immediately, the following workarounds can reduce risk:
AllowOverride None in the Apache configuration for the Chamilo dropbox directories to prevent .htaccess files from being processed..htaccess filenames.The vulnerability was covered in The Hacker News weekly security recap and referenced in security aggregators including unsafe.sh and buaq.net shortly after disclosure (The Hacker News). A Quarkslab blog post titled "Chamilo LMS: It's Raining 0days" was published around the time of initial discovery, suggesting broader research into Chamilo LMS security issues (Quarkslab Blog). Community discussion on Infosec Exchange and vulnerability tracking platforms (VulnDB, CVEFeed) noted the straightforward exploit chain and the risk posed to default Chamilo installations.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."