CVE-2026-32892
JSON

9.1critical

OS Command Injection in Chamilo LMS 1.11.36

Severity
9.1critical CVSS:3.1 by GitHub_M
Exploit likelihood
1.59% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Chamilo LMS is a learning management system. Prior to 1.11.38 and 2.0.0-RC.3, Chamilo LMS contains an OS Command Injection vulnerability in the file move function. The move() function in fileManage.lib.php passes user-controlled path values directly into exec() shell commands without using escapeshellarg(). When a user moves a document via document.php, the move_to POST parameter — which only passes through Security::remove_XSS() (an HTML-only filter) — is concatenated directly into shell commands such as exec("mv $source $target"). By default, Chamilo allows all authenticated users to create courses (allow_users_to_create_courses = true). Any user who is a teacher in a course (including self-created courses) can move documents, making this vulnerability exploitable by any authenticated user. The attacker must first place a directory with shell metacharacters in its name on the filesystem (achievable via Course Backup Import), then move a document into that directory to trigger arbitrary command execution as the web server user (www-data). This vulnerability is fixed in 1.11.38 and 2.0.0-RC.3.

Affected

Product or packageVersionsReported by
chamilo chamilo-lms< 1.11.38, >= 2.0.0-alpha.1, < 2.0.0-RC.3CVE List
chamilo chamilo_lmsbefore 1.11.38, 2.0.0NVD

All scores

GitHub_M9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Chamilo LMS is a learning management system. Prior to 1.11.38 and 2.0.0-RC.3, Chamilo LMS contains an OS Command Injection vulnerability in the file move function. The move() function in fileManage.lib.php passes user-controlled path values directly into exec() shell commands without using escapeshellarg(). When a user moves a document via document.php, the move_to POST parameter — which only passes through Security::remove_XSS() (an HTML-only filter) — is concatenated directly into shell commands such as exec("mv $source $target"). By default, Chamilo allows all authenticated users to create courses (allow_users_to_create_courses = true). Any user who is a teacher in a course (including self-created courses) can move documents, making this vulnerability exploitable by any authenticated user. The attacker must first place a directory with shell metacharacters in its name on the filesystem (achievable via Course Backup Import), then move a document into that directory to trigger arbitrary command execution as the web server user (www-data). This vulnerability is fixed in 1.11.38 and 2.0.0-RC.3.

NVD (es)

Chamilo LMS es un sistema de gestión del aprendizaje. Antes de 1.11.38 y 2.0.0-RC.3, Chamilo LMS contiene una vulnerabilidad de inyección de comandos del sistema operativo en la función de mover archivos. La función move() en fileManage.lib.php pasa valores de ruta controlados por el usuario directamente a comandos de shell exec() sin usar escapeshellarg(). Cuando un usuario mueve un documento a través de document.php, el parámetro POST move_to - que solo pasa por Security::remove_XSS() (un filtro solo de HTML) - se concatena directamente en comandos de shell como exec(’mv $source $target’). Por defecto, Chamilo permite a todos los usuarios autenticados crear cursos (allow_users_to_create_courses = true). Cualquier usuario que sea profesor en un curso (incluidos los cursos autocreados) puede mover documentos, haciendo que esta vulnerabilidad sea explotable por cualquier usuario autenticado. El atacante debe primero colocar un directorio con metacaracteres de shell en su nombre en el sistema de archivos (lograble a través de la importación de copia de seguridad del curso), luego mover un documento a ese directorio para desencadenar la ejecución arbitraria de comandos como el usuario del servidor web (www-data). Esta vulnerabilidad está corregida en 1.11.38 y 2.0.0-RC.3.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-32892 changed 2026-04-14CVE Terms of Use
NVDCVE-2026-32892 changed 2026-10-26Public domain