CVE-2026-35196: Chamilo LMS has OS Command Injection via export_all_certificates action
Chamilo LMS is an open-source learning management system. In versions prior to 2.0.0-RC.3, an OS Command Injection vulnerability exists in the main/inc/ajax/gradebook.ajax.php endpoint within the exportallcertificates action, where the course code retrieved from the session variable $SESSION['cid'] via apigetcourseid() is concatenated directly into a shellexec() command string without sanitization or escaping using escapeshellarg(). If an attacker can manipulate or poison their session data to inject shell metacharacters into the cid variable, they can achieve arbitrary command execution on the underlying server. Successful exploitation grants full access to read system files and credentials, alters the application and database, or disrupts server availability. This issue has been fixed in version 2.0.0-RC.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Chamilo LMSto a version that resolves this vulnerability.Fixed in 2.0.0-RC.3
Event History
Frequently Asked Questions
What is the severity of CVE-2026-35196?
CVE-2026-35196 is classified as a critical severity vulnerability due to its potential for OS Command Injection.
How do I fix CVE-2026-35196?
To fix CVE-2026-35196, update Chamilo LMS to version 2.0.0-RC.3 or later.
Which versions of Chamilo LMS are affected by CVE-2026-35196?
CVE-2026-35196 affects all versions of Chamilo LMS prior to 2.0.0-RC.3.
What type of vulnerability is CVE-2026-35196?
CVE-2026-35196 is an OS Command Injection vulnerability.
Where in the Chamilo LMS is CVE-2026-35196 found?
CVE-2026-35196 is found in the main/inc/ajax/gradebook.ajax.php endpoint within the export_all_certificates action.