Skip to main content
Vulnerability Database/CVE-2025-52475

CVE-2025-52475: Chamilo LMS Reflected XSS Vulnerability

CVE-2025-52475 is a reflected cross-site scripting flaw in Chamilo LMS that allows attackers to inject malicious JavaScript via the admin user list endpoint. This article covers technical details, affected versions, and patches.

Updated:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-52475 Overview

CVE-2025-52475 is a reflected cross-site scripting (XSS) vulnerability in Chamilo learning management system (LMS) versions prior to 1.11.30. The flaw resides in the admin/user_list.php endpoint, where the keyword_inactive parameter is not properly sanitized before being reflected in the response. Attackers can craft a malicious URL that, when visited by an authenticated administrator, executes arbitrary JavaScript in the victim's browser session. The issue is tracked under [CWE-79] and was patched in Chamilo 1.11.30.

Critical Impact

Successful exploitation allows attackers to execute JavaScript in an administrator's browser context, enabling session abuse, administrative action forgery, and content manipulation within the Chamilo LMS interface.

Affected Products

  • Chamilo LMS versions prior to 1.11.30
  • Endpoint: admin/user_list.php
  • Vulnerable parameter: keyword_inactive

Discovery Timeline

  • 2026-03-02 - CVE-2025-52475 published to NVD
  • 2026-03-03 - Last updated in NVD database

Technical Details for CVE-2025-52475

Vulnerability Analysis

The vulnerability is a reflected XSS issue in the Chamilo administrative user listing page. The admin/user_list.php endpoint accepts a keyword_inactive query parameter intended to filter inactive users. The application reflects this value back into the rendered HTML, specifically as part of hidden form inputs generated by the sortable table component, without applying adequate output encoding. An attacker who tricks an authenticated administrator into clicking a crafted link can execute JavaScript in the administrator's session context.

Because the vulnerable endpoint requires administrator access, exploitation depends on user interaction (UI:A). The attack surface is limited to the administrator role, but the impact on integrity within the application is meaningful given the privileges granted to administrators.

Root Cause

The root cause is insufficient sanitization of user-supplied parameters when rendering hidden form fields in the sortable_table.class.php helper. The original code concatenated parameter names and values directly into HTML string templates. Although Security::remove_XSS() was called, the surrounding HTML construction did not consistently enforce safe attribute encoding. The patch refactors the code to use the Display::input() helper, which centralizes safe HTML generation.

Attack Vector

The attack is network-based and requires the victim administrator to follow a crafted URL containing a malicious keyword_inactive payload. Once the page loads, the injected JavaScript runs with the administrator's session cookies in scope, enabling forged requests against the LMS such as creating accounts, modifying user roles, or exfiltrating user data.

php
             foreach ($this->additional_parameters as $key => $value) {
                 if (is_array($value)) {
                     foreach ($value as $subKey => $subValue) {
-                        $html .= '<input type="hidden" name ="'.Security::remove_XSS($subKey).'" value ="'
-                            .Security::remove_XSS($subValue).'" />';
+                        $html .= Display::input(
+                            'hidden',
+                            Security::remove_XSS($subKey),
+                            Security::remove_XSS($subValue)
+                        );
                     }
                 } else {
-                    $html .= '<input type="hidden" name ="'.Security::remove_XSS($key).'" value ="'
-                        .Security::remove_XSS($value).'" />';
+                    $html .= Display::input(
+                        'hidden',
+                        Security::remove_XSS($key),
+                        Security::remove_XSS($value)
+                    );
                 }
             }
         }

Source: Chamilo LMS commit 349062d — the patch replaces inline HTML string concatenation with calls to Display::input() to enforce consistent encoding of hidden input attributes.

Detection Methods for CVE-2025-52475

Indicators of Compromise

  • HTTP GET requests to admin/user_list.php containing suspicious characters in the keyword_inactive parameter, such as <, >, ", script, onerror, or javascript:.
  • Web server access logs showing URL-encoded JavaScript payloads (%3Cscript%3E, %22%3E) targeting administrative endpoints.
  • Unexpected administrative actions originating from an administrator's IP shortly after the administrator followed an external link.

Detection Strategies

  • Inspect web access logs for query strings against /admin/user_list.php that contain HTML metacharacters or known XSS payload signatures.
  • Deploy Web Application Firewall (WAF) rules to flag reflected parameter values containing <script>, event handler attributes, or JavaScript URI schemes.
  • Correlate referer headers with administrator session activity to identify links delivered from untrusted external sources.

Monitoring Recommendations

  • Alert on outbound HTTP requests initiated from administrator browsers to unfamiliar domains shortly after accessing admin/user_list.php.
  • Monitor Chamilo application logs for bursts of administrative API actions following a single page load.
  • Track Chamilo version metadata across deployments and alert when instances remain on versions earlier than 1.11.30.

How to Mitigate CVE-2025-52475

Immediate Actions Required

  • Upgrade Chamilo LMS to version 1.11.30 or later, which contains the official fix.
  • Review web server logs for prior exploitation attempts against admin/user_list.php using the keyword_inactive parameter.
  • Rotate administrative credentials and invalidate active administrator sessions if exploitation is suspected.

Patch Information

The vulnerability is patched in Chamilo LMS 1.11.30. The fix is implemented in commit 349062d31533d464feea78d41996bc0857f90f61, which refactors hidden input rendering in main/inc/lib/sortable_table.class.php to use the Display::input() helper. Full details are available in the GitHub Security Advisory GHSA-7p5f-34rx-49h8 and the Chamilo LMS v1.11.30 release notes.

Workarounds

  • Restrict access to /admin/ endpoints via network controls or IP allowlists until the upgrade is applied.
  • Deploy WAF signatures that block requests to admin/user_list.php containing HTML or JavaScript metacharacters in the keyword_inactive parameter.
  • Train administrators to avoid clicking Chamilo administrative URLs received from untrusted sources.
bash
# Example WAF rule (ModSecurity) to block suspicious keyword_inactive values
SecRule ARGS:keyword_inactive "@rx (?i)(<script|onerror=|onload=|javascript:|<iframe)" \
    "id:1052475,phase:2,deny,status:403,\
    msg:'CVE-2025-52475 Chamilo XSS attempt in keyword_inactive',\
    tag:'CWE-79',tag:'chamilo'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.