The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-50189

CVE-2025-50189: Chamilo LMS SQL Injection Vulnerability

CVE-2025-50189 is a SQL injection vulnerability in Chamilo LMS that allows attackers to manipulate database queries through insufficient input validation. This article covers technical details, affected versions, and mitigation.

Published: March 6, 2026

CVE-2025-50189 Overview

CVE-2025-50189 is a SQL Injection vulnerability affecting Chamilo, an open-source learning management system (LMS). The application performs insufficient validation of user-supplied data from the POST resource[document] and POST login parameters found in /main/coursecopy/copy_course_session_selected.php. This allows an authenticated attacker to inject arbitrary SQL statements, potentially modifying database query logic to access, modify, or delete sensitive information.

Critical Impact

Authenticated attackers can exploit insufficient input validation to inject arbitrary SQL statements, potentially leading to unauthorized data access, data modification, and service disruption.

Affected Products

  • Chamilo LMS versions prior to 1.11.30
  • Chamilo LMS installations with course copy functionality enabled
  • Systems exposing /main/coursecopy/copy_course_session_selected.php endpoint

Discovery Timeline

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

Technical Details for CVE-2025-50189

Vulnerability Analysis

This SQL Injection vulnerability (CWE-89) exists in Chamilo LMS's course copy functionality. The vulnerable endpoint /main/coursecopy/copy_course_session_selected.php directly incorporates user-controlled input from POST parameters into SQL queries without proper sanitization or parameterization. An authenticated attacker can craft malicious input containing SQL syntax that gets interpreted by the database engine, allowing them to manipulate query logic beyond the intended functionality.

The attack is network-accessible and requires low privileges (authenticated user access), but no user interaction is needed for exploitation. Successful exploitation can result in high confidentiality and availability impacts, enabling attackers to extract sensitive data from the database or cause denial of service conditions.

Root Cause

The root cause is improper neutralization of special elements used in SQL commands. The vulnerable code directly concatenates user-supplied values from the resource[document] array into SQL queries without using prepared statements or parameterized queries. This allows SQL meta-characters in the input to be interpreted as part of the SQL command structure rather than as literal data values.

Attack Vector

The attack targets the course copy session selection feature in Chamilo LMS. An authenticated attacker sends a crafted POST request to /main/coursecopy/copy_course_session_selected.php with malicious SQL syntax embedded in the resource[document] parameter. The server-side code constructs a SQL query by directly interpolating this unsanitized input, causing the injected SQL to execute against the database with the privileges of the application's database user.

The fix implemented by Chamilo demonstrates the proper remediation approach using parameterized queries:

php
// Vulnerable code (before patch):
$sql = 'SELECT d.id, d.path, d.comment, d.title, d.filetype, d.size
        FROM '.$table_doc.' d
        INNER JOIN '.$table_prop.' p
        ON (d.c_id = p.c_id)
        WHERE
            d.c_id = '.$course_id.' AND
            p.c_id = '.$course_id.' AND
            tool = \''.TOOL_DOCUMENT.'\' AND
            p.ref = d.id AND p.visibility != 2 AND
            d.id = '.$resource_item.$conditionSession.'
        ORDER BY path';

// Patched code (after fix):
$whereConditions = [
    'd.c_id = ?' => [$course_id],
    'tool = ?' => [TOOL_DOCUMENT],
    'p.visibility <> ?' => [2],
    'd.id = ?' => [$resource_item],
];

if (!empty($session_id)) {
    $session_id = (int) $session_id;
    $whereConditions['d.session_id = ?'] = [$session_id];
}

Source: GitHub Commit 22bb81d

Detection Methods for CVE-2025-50189

Indicators of Compromise

  • Unusual POST requests to /main/coursecopy/copy_course_session_selected.php containing SQL keywords (SELECT, UNION, INSERT, UPDATE, DELETE, DROP)
  • Database error messages in application logs indicating malformed SQL queries
  • Anomalous database query patterns or unexpected query execution times
  • Unauthorized data access or modification in course-related database tables

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect SQL injection patterns in POST parameters targeting Chamilo endpoints
  • Monitor application logs for SQL syntax errors or database exceptions originating from course copy functionality
  • Implement database activity monitoring to detect unusual query patterns or unauthorized data access
  • Review access logs for repeated requests to /main/coursecopy/copy_course_session_selected.php with suspicious parameter values

Monitoring Recommendations

  • Enable verbose logging for the Chamilo application to capture detailed request parameters
  • Configure database audit logging to track queries executed against sensitive tables
  • Set up alerting for failed SQL query attempts that may indicate exploitation attempts
  • Monitor for privilege escalation attempts or unauthorized administrative actions following course copy operations

How to Mitigate CVE-2025-50189

Immediate Actions Required

  • Upgrade Chamilo LMS to version 1.11.30 or later immediately
  • If immediate upgrade is not possible, restrict access to /main/coursecopy/copy_course_session_selected.php at the web server level
  • Review database logs for evidence of prior exploitation attempts
  • Ensure database user accounts used by Chamilo follow the principle of least privilege

Patch Information

Chamilo has released version 1.11.30 which addresses this SQL Injection vulnerability. The fix implements parameterized queries in the CourseSelectForm.php component, ensuring user input is properly escaped before database query execution. Multiple commits address this issue:

  • Primary Security Fix (22bb81d)
  • Additional Hardening (75ab03c)
  • Related Fix (7903cef)

For complete details, see the GitHub Security Advisory GHSA-vxx3-648j-7p4r and Chamilo LMS v1.11.30 Release.

Workarounds

  • Implement WAF rules to filter SQL injection patterns in POST requests to Chamilo endpoints
  • Restrict network access to Chamilo administrative and course management functions to trusted IP ranges
  • Disable or restrict access to course copy functionality until the patch can be applied
  • Apply database-level restrictions to limit the scope of potential SQL injection damage
bash
# Apache configuration to restrict access to vulnerable endpoint
<Location "/main/coursecopy/copy_course_session_selected.php">
    Require ip 10.0.0.0/8 192.168.0.0/16
    # Or disable entirely until patched:
    # Require all denied
</Location>

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechChamilo

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Release v1.11.30
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-28430: Chamilo LMS SQL Injection Vulnerability

  • CVE-2025-50190: Chamilo LMS SQL Injection Vulnerability

  • CVE-2025-50191: Chamilo LMS SQL Injection Vulnerability

  • CVE-2025-50192: Chamilo LMS SQL Injection Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English