Cyber Posture

CVE-2026-35196

HighPublic PoC

Published: 14 April 2026

Published
14 April 2026
Modified
22 April 2026
KEV Added
Patch
CVSS Score 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0021 43.2th percentile
Risk Priority 18 60% EPSS · 20% KEV · 20% CVSS

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…

more

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.

Mitigating Controls (NIST 800-53 r5)AI

prevent

SI-10 requires input validation mechanisms that would sanitize or validate the session-derived course code before concatenation into shell_exec(), directly preventing OS command injection.

prevent

SI-2 mandates timely flaw remediation, including applying the patch in Chamilo LMS 2.0.0-RC.3 that fixes the unsanitized shell_exec() usage.

detect

SI-4 enables system monitoring to detect anomalous command executions or indicators of OS command injection from the gradebook.ajax.php endpoint.

Security SummaryAI

CVE-2026-35196 is an OS Command Injection vulnerability (CWE-78) affecting Chamilo LMS, an open-source learning management system, in versions prior to 2.0.0-RC.3. The issue resides in the main/inc/ajax/gradebook.ajax.php endpoint, specifically within the export_all_certificates action. There, the course code retrieved from the session variable $_SESSION['_cid'] via api_get_course_id() is directly concatenated into a shell_exec() command string without sanitization or escaping using escapeshellarg(), enabling injection of shell metacharacters. The vulnerability carries a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

An authenticated attacker with low privileges (PR:L) can exploit this by manipulating or poisoning their session data to inject malicious content into the _cid variable. Upon triggering the export_all_certificates action, this leads to arbitrary command execution on the underlying server. Successful exploitation allows the attacker to read system files and credentials, alter the application and database, or disrupt server availability.

The vulnerability has been addressed in Chamilo LMS version 2.0.0-RC.3, as detailed in the project's security advisory (GHSA-crc6-r6c7-44q3), release notes, and the fixing commit. Security practitioners should urge users to upgrade to 2.0.0-RC.3 or later to mitigate the issue.

Details

CWE(s)

Affected Products

chamilo
chamilo lms
2.0.0 · ≤ 1.11.38

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
Why these techniques?

CVE-2026-35196 is an OS command injection vulnerability in a public-facing web application (Chamilo LMS), enabling authenticated low-privilege attackers to achieve arbitrary Unix shell command execution via unsanitized session data in shell_exec().

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

References