CVE-2026-61583 in LMSinfo

Summary

by MITRE • 11/18/2026

Chamilo LMS is an open-source learning management system. Prior to 1.11.40, main/dropbox/dropbox_functions.inc.php accepts a literal .htaccess filename in the course dropbox and stores it in a directory served by Apache, where the file can alter handler behavior under the required AllowOverride All configuration. Any authenticated course participant can upload .htaccess and then upload a PHP payload disguised as a .gif, resulting in code execution as the web-server user when the dropbox tool is enabled. This can expose or modify the Chamilo installation, course content, and database credentials. This issue is fixed in version 1.11.40.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/18/2026

Chamilo Learning Management System (LMS) versions prior to 1.11.40 contain a critical server-side request forgery and arbitrary file upload vulnerability that allows authenticated users to achieve remote code execution on the underlying web server infrastructure. The core of this flaw resides in the dropbox functionality, specifically within the main/dropbox/dropbox_functions.inc.php script which handles user-uploaded files for course assignments or resource sharing. This component fails to adequately sanitize filenames during the upload process, permitting users to specify a literal .htaccess filename when submitting files through the web interface. Because Chamilo stores these uploaded items in directories that are directly served by Apache HTTP Server, and assuming the server configuration includes AllowOverride All directives for those specific paths, an attacker can manipulate the server's behavior using maliciously crafted configuration files rather than just executing code through traditional script uploads alone.

The exploitation of this vulnerability requires a two-stage approach that leverages both file naming manipulation and content type confusion. First, an authenticated course participant must upload a .htaccess file containing directives designed to alter how Apache processes subsequent requests in that directory. A common technique involves using the SetHandler directive to force Apache to parse files with specific extensions as PHP scripts, effectively bypassing standard MIME-type checks or extension-based filtering mechanisms implemented by the application layer. Once this configuration is successfully written to disk and recognized by the web server due to the AllowOverride setting, the attacker proceeds to upload a second file containing malicious PHP code but disguised with a .gif extension to evade basic filename validation rules that might otherwise block executable scripts like .php or .phtml files.

When an administrator or another user attempts to view or download this disguised payload through the Chamilo interface, Apache reads the previously uploaded .htaccess configuration and interprets the .gif file as PHP code rather than a static image resource. Consequently, the embedded malicious script is executed with the privileges of the web server process, typically www-data or apache on Linux systems. This results in full remote code execution (RCE) within the context of the Chamilo installation. The operational impact is severe, granting attackers complete control over the compromised system. They can read sensitive configuration files such as database credentials stored in config.inc.php, exfiltrate course content and student data, modify existing application logic to create persistent backdoors, or pivot further into internal network segments depending on the server's connectivity and security posture.

This vulnerability maps directly to CWE-434 Unrestricted Upload of File with Dangerous Type and CWE-94 Improper Control of Generation of Code (Code Injection), as it involves both uploading a file that is executed by the server and manipulating configuration files to facilitate this execution. In terms of the MITRE ATT&CK framework, this activity aligns with T1505.003 Web Shell: Apache Configuration File, which describes attackers using web server configuration files like .htaccess or httpd.conf to execute arbitrary code without placing a traditional shell script on disk in an obvious location. It also relates to T1078 Valid Accounts because the initial access requires valid authentication as a course participant, highlighting the importance of least-privilege principles even for low-level user roles within educational platforms.

Mitigation strategies must prioritize immediate patching and configuration hardening. The primary remediation is upgrading Chamilo LMS to version 1.11.40 or later, where this specific input validation flaw has been addressed by developers who likely implemented stricter filename sanitization and extension whitelisting for the dropbox module. In environments where an upgrade cannot be performed immediately due to compatibility constraints, administrators should review Apache configurations serving Chamilo directories. Specifically, setting AllowOverride to None in the Directory block corresponding to user-uploaded content will prevent .htaccess files from overriding server settings, thereby neutralizing this specific attack vector even if a malicious file is uploaded. Additionally, implementing strict Content Security Policies and ensuring that web servers do not execute scripts based solely on MIME type detection without rigorous application-layer validation can provide defense-in-depth against similar upload-based attacks across various LMS platforms.

Responsible

GitHub M

Reservation

07/10/2026

Disclosure

11/18/2026

Moderation

accepted

CPE

ready

EPSS

0.00426

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!