← voltar
CVE-2026-35196

Chamilo LMS has OS Command Injection via export_all_certificates action

CVSS 8.8 HIGHEPSS 1.8%CWE-78
Em resumo

O Chamilo LMS permite que atacantes executem comandos arbitrários no servidor ao injetar comandos shell através de um código de curso manipulado no recurso de exportação de certificados. Isso pode levar à comprometimento completo do servidor, incluindo roubo de arquivos e credenciais.

Detalhe técnico

Injeção de Comando OS em gradebook.ajax.php na ação export_all_certificates, onde $_SESSION['_cid'] não sanitizado é concatenado em shell_exec() sem escapeshellarg(). O ataque requer manipulação de sessão para injetar metacaracteres shell; exploração bem-sucedida resulta em execução de comando arbitrário com privilégios da aplicação, permitindo exfiltração de dados, modificação do sistema e negação de serviço.

Resumo gerado e traduzido por IA a partir da descrição oficial.
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Produtos afetados
chamilo · chamilo-lms

Quer saber se a sua infraestrutura está exposta a isto?

Falar com a TrueHacking →