8.8high
Chamilo LMS: SQL Injection in the statistics AJAX endpoint
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Chamilo LMS is a learning management system. Version 1.11.34 and prior contains a SQL Injection vulnerability in the statistics AJAX endpoint. The parameters date_start and date_end from $_REQUEST are embedded directly into a raw SQL string without proper sanitization. Although Database::escape_string() is called downstream, its output is immediately neutralized by str_replace("\'", "'", ...), which restores any injected single quotes — effectively bypassing the escaping mechanism entirely. This allows an authenticated attacker to inject arbitrary SQL statements into the database query, enabling blind time-based and conditional data extraction. This issue has been patched in version 1.11.36.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| chamilo chamilo-lms | < 1.11.36 | CVE List |
| chamilo chamilo_lms | before 1.11.36 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Chamilo LMS is a learning management system. Version 1.11.34 and prior contains a SQL Injection vulnerability in the statistics AJAX endpoint. The parameters date_start and date_end from $_REQUEST are embedded directly into a raw SQL string without proper sanitization. Although Database::escape_string() is called downstream, its output is immediately neutralized by str_replace("\'", "'", ...), which restores any injected single quotes — effectively bypassing the escaping mechanism entirely. This allows an authenticated attacker to inject arbitrary SQL statements into the database query, enabling blind time-based and conditional data extraction. This issue has been patched in version 1.11.36.
NVD (es)
Chamilo LMS es un sistema de gestión de aprendizaje. La versión 1.11.34 y anteriores contiene una vulnerabilidad de inyección SQL en el endpoint AJAX de estadísticas. Los parámetros date_start y date_end de $_REQUEST se incrustan directamente en una cadena SQL sin procesar sin una sanitización adecuada. Aunque Database::escape_string() se llama más adelante, su salida es neutralizada inmediatamente por str_replace(\', "'", ...), lo que restaura cualquier comilla simple inyectada — eludiendo efectivamente el mecanismo de escape por completo. Esto permite a un atacante autenticado inyectar sentencias SQL arbitrarias en la consulta de la base de datos, lo que permite la extracción de datos ciega basada en tiempo y condicional. Este problema ha sido parcheado en la versión 1.11.36.
References
| https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-5ggx-x2cv-4h44 | vendor-advisory | |
| https://github.com/chamilo/chamilo-lms/releases/tag/v1.11.36 | product, release-notes | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-30881 changed 2026-03-16 | CVE Terms of Use |
| NVD | CVE-2026-30881 changed 2026-06-17 | Public domain |