CVE-2026-35196

Chamilo LMS has OS Command Injection via export_all_certificates action

Published Apr 14, 2026 CVSS 3.1 · 8.8 High EPSS 1.8% KEV · Not listed
Description
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 export_all_certificates action, where the course code retrieved from the session variable $_SESSION['_cid'] via api_get_course_id() is concatenated directly into a shell_exec() 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.

Analysis

AI-generated

Technical impact

The vulnerability arises when the export_all_certificates action in the gradebook AJAX endpoint concatenates the course identifier from the session directly into a shell command without sanitization. An attacker able to alter or poison their session data can inject shell metacharacters and execute arbitrary system commands on the server hosting Chamilo. Such exploitation would provide the attacker with full read and write access to the file system, the ability to modify application or database files, and the potential to disrupt server availability.

Affected Systems

Chamilo LMS, the open‑source learning management system. Versions released before 2.0.0‑RC.3 are affected. All deployments using those earlier releases may be vulnerable if the export_all_certificates endpoint is reachable.

Risk and Exploitability

The vulnerability has a CVSS score of 8.8 and is not listed in the CISA KEV catalog. An attacker can exploit the flaw remotely by manipulating session data to inject shell characters. The probability of exploitation is estimated at 2% based on EPSS, indicating a non-negligible likelihood of exploitation, especially given the high severity score.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Chamilo LMS installation to version 2.0.0‑RC.3 or later, where the export_all_certificates action no longer concatenates unsanitized data into shell commands.
  • If an upgrade is not immediately possible, disable or restrict access to the export_all_certificates endpoint so that only privileged, non‑modifiable sessions can invoke it.
  • Add input validation and escaping for any future code that passes session or user‑controlled values to shell_exec, ensuring that path or command arguments are correctly escaped or avoided.

Generated by OpenCVE AI on June 18, 2026 at 09:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:chamilo:chamilo_lms:*:*:*:*:*:*:*:*
cpe:2.3:a:chamilo:chamilo_lms:2.0.0:alpha1:*:*:*:*:*:*
cpe:2.3:a:chamilo:chamilo_lms:2.0.0:alpha2:*:*:*:*:*:*
cpe:2.3:a:chamilo:chamilo_lms:2.0.0:alpha3:*:*:*:*:*:*
cpe:2.3:a:chamilo:chamilo_lms:2.0.0:alpha4:*:*:*:*:*:*
cpe:2.3:a:chamilo:chamilo_lms:2.0.0:alpha5:*:*:*:*:*:*
cpe:2.3:a:chamilo:chamilo_lms:2.0.0:beta1:*:*:*:*:*:*
cpe:2.3:a:chamilo:chamilo_lms:2.0.0:beta2:*:*:*:*:*:*
cpe:2.3:a:chamilo:chamilo_lms:2.0.0:beta3:*:*:*:*:*:*
cpe:2.3:a:chamilo:chamilo_lms:2.0.0:rc1:*:*:*:*:*:*
cpe:2.3:a:chamilo:chamilo_lms:2.0.0:rc2:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Chamilo
Chamilo chamilo Lms
Vendors & Products Chamilo
Chamilo chamilo Lms
Type Values Removed Values Added
Description 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 export_all_certificates action, where the course code retrieved from the session variable $_SESSION['_cid'] via api_get_course_id() is concatenated directly into a shell_exec() 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.
Title Chamilo LMS has OS Command Injection via export_all_certificates action
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 15, 2026, 2:27 PM
Reserved
Apr 1, 2026, 6:48 PM
Status
Analyzed
Published
Apr 14, 2026, 10:16 PM
Modified
Jul 24, 2026, 9:10 PM