CVE-2026-45146: 
Chamilo vulnerability analysis and mitigation

Overview

CVE-2026-45146 is a blind/time-based SQL injection vulnerability in Chamilo LMS affecting the get_sessions action in /main/inc/ajax/model.ajax.php. An authenticated administrator can supply a crafted JSON filters parameter whose groupOp field contains arbitrary SQL syntax, which is passed unsanitized into database query logic. Affected versions are all Chamilo LMS releases prior to 1.11.40 (1.x branch) and 2.0.0 (2.x branch prior to 2.0.1). The vulnerability was disclosed on November 3, 2026, with the GitHub Security Advisory (GHSA-prqp-8x29-cr88) published July 1, 2026. It carries a CVSS v3.1 base score of 7.2 (High) (GitHub Advisory).

Technical details

The root cause is improper input validation (CWE-20) combined with SQL injection (CWE-89): the groupOp field within the JSON filters parameter decoded from $_REQUEST['filters2'] in model.ajax.php is incorporated directly into SQL query logic without being restricted to the expected AND or OR operators. An attacker crafts a POST request to /main/inc/ajax/model.ajax.php with a=get_sessions&_search=true and a malicious filters JSON payload where groupOp contains a SQL expression such as AND SLEEP(5), causing a measurable ~5-second database delay that confirms time-based blind SQL injection. The fix, applied in commits 4472f30 and 7cc961d, adds a whitelist check that normalizes groupOp to AND if the supplied value is not strictly AND or OR (GitHub Advisory, Patch Commit 1, Patch Commit 2).

Impact

Successful exploitation allows an authenticated administrator to extract sensitive data from the Chamilo database via blind or time-based SQL injection, including user credentials, course and session data, configuration values, password-reset tokens, and administrative metadata. Depending on the database account's privileges, an attacker may also modify or delete records, potentially corrupting the LMS environment. Repeated injection of expensive delayed queries can cause denial of service, degrading availability for all platform users (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the available data. The vulnerability requires authenticated administrator credentials, which significantly limits the attack surface. The EPSS score is approximately 0.317%, indicating a low probability of near-term exploitation. The CVE is not listed in the CISA Known Exploited Vulnerabilities catalog, and NVD's SSVC assessment notes exploitation status as "none" (GitHub Advisory, Feedly).

Exploitation steps

  1. Authenticate as Administrator: Obtain valid administrator credentials for the target Chamilo LMS instance (e.g., through credential theft, phishing, or reuse of default credentials).
  2. Identify the vulnerable endpoint: Confirm the target is running Chamilo LMS < 1.11.40 or 2.0.0 and that the endpoint /main/inc/ajax/model.ajax.php is accessible.
  3. Craft the malicious request: Construct a POST request to /main/inc/ajax/model.ajax.php with the following parameters:
    a=get_sessions
    _search=true
    filters={"groupOp":"AND SLEEP(5)","rules":[]}
  4. Confirm time-based injection: Send the request with a valid session cookie. A ~5-second response delay confirms the SQL expression in groupOp was executed by the database.
  5. Extract data via blind injection: Use iterative boolean or time-based payloads (e.g., with tools like sqlmap targeting the filters[groupOp] parameter) to enumerate database tables, extract user hashes, password-reset tokens, or configuration secrets.
  6. Escalate or persist: Use extracted credentials or tokens to maintain access, escalate privileges, or pivot to other systems if the database account has broad privileges (GitHub Advisory).

Indicators of compromise

  • Network: Repeated POST requests to /main/inc/ajax/model.ajax.php with parameters a=get_sessions and _search=true from an administrator session; unusually slow HTTP responses (~5+ seconds) to this endpoint suggesting time-based injection.
  • Logs: Web server access logs showing POST requests to model.ajax.php with filters parameters containing SQL keywords (SLEEP, BENCHMARK, AND, OR combined with SQL syntax) in the request body; database slow query logs recording repeated delayed queries.
  • Application Logs: Chamilo application logs showing abnormal or repeated get_sessions AJAX calls from a single administrator account in a short time window.
  • Database: Unexpected slow queries or queries containing SLEEP() or BENCHMARK() functions in the database query log (GitHub Advisory).

Mitigation and workarounds

Upgrade Chamilo LMS to version 1.11.40 (1.x branch) or 2.0.1 (2.x branch), which enforce a strict whitelist on the groupOp parameter, allowing only AND or OR values. No official configuration-based workaround is provided; upgrading is the recommended and only reliable remediation. As an interim measure, administrators can restrict access to the AJAX endpoint via web server rules or firewall policies to limit exposure to trusted networks (GitHub Release v1.11.40, GitHub Release v2.0.1, GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related Chamilo vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61532CRITICAL9
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026
CVE-2026-61583HIGH8.7
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026
CVE-2026-61578HIGH7
  • PHP logoPHP
  • chamilo/chamilo-lms
NoYesNov 18, 2026
CVE-2026-61582MEDIUM6.4
  • PHP logoPHP
  • chamilo/chamilo-lms
NoYesNov 18, 2026
CVE-2026-61584MEDIUM5.3
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management