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-50191

CVE-2025-50191: Chamilo LMS SQL Injection Vulnerability

CVE-2025-50191 is an error-based SQL injection flaw in Chamilo LMS affecting the hotpotatoes.php script. Attackers can exploit this to access sensitive database information. This article covers technical details, affected versions, impact, and mitigation steps.

Published: March 6, 2026

CVE-2025-50191 Overview

CVE-2025-50191 is a high-severity SQL Injection vulnerability affecting Chamilo, an open-source learning management system (LMS). The vulnerability exists in the /main/exercise/hotpotatoes.php script and can be exploited via error-based SQL injection through the userFile POST parameter. This flaw allows authenticated attackers with elevated privileges to extract sensitive database information or cause denial of service conditions.

Critical Impact

Authenticated attackers can exploit this error-based SQL injection to exfiltrate sensitive data from the database, including user credentials, course content, and system configuration. The vulnerability also poses availability risks through potential database corruption or denial of service.

Affected Products

  • Chamilo LMS versions prior to 1.11.30
  • All installations using the HotPotatoes exercise upload functionality
  • Self-hosted Chamilo deployments without input sanitization patches

Discovery Timeline

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

Technical Details for CVE-2025-50191

Vulnerability Analysis

This SQL Injection vulnerability (CWE-89) resides in the HotPotatoes file upload handler within Chamilo LMS. The vulnerability is network-accessible and requires high privileges to exploit, though no user interaction is necessary. Successful exploitation enables attackers to read confidential database contents and potentially disrupt system availability.

The flaw occurs during the file upload process where the filename from the uploaded file is used in database operations without proper sanitization. Error-based SQL injection techniques can be leveraged to extract database information through crafted error messages returned by the application.

Root Cause

The root cause of CVE-2025-50191 is improper input validation in the hotpotatoes.php script. Specifically, the filename from the uploaded userFile was being processed and used in SQL queries without adequate escaping or parameterization. The vulnerable code path allowed user-controlled input to be directly incorporated into database operations, enabling SQL injection attacks.

Attack Vector

The attack vector for this vulnerability is network-based, requiring an authenticated session with high-level privileges. An attacker would craft a malicious file upload request to /main/exercise/hotpotatoes.php with a specially crafted filename in the userFile POST parameter. The malicious filename would contain SQL injection payloads designed to trigger database errors that leak sensitive information.

The attack workflow involves:

  1. Authenticating to the Chamilo LMS with sufficient privileges
  2. Navigating to the HotPotatoes exercise upload functionality
  3. Submitting a file with a crafted filename containing SQL injection payloads
  4. Analyzing error responses to extract database information
php
                $unzip = 1;
            }

+            $filename = api_replace_dangerous_char(trim($_FILES['userFile']['name']));
+
            if ($finish == 0) {
                // Generate new test folder if on first step of file upload.
-                $filename = api_replace_dangerous_char(trim($_FILES['userFile']['name']));
                $fld = GenerateHpFolder($document_sys_path.$uploadPath.'/');
                @mkdir($document_sys_path.$uploadPath.'/'.$fld, api_get_permissions_for_new_directories());
                $doc_id = add_document($_course, '/HotPotatoes_files/'.$fld, 'folder', 0, $fld);

Source: GitHub Commit

Detection Methods for CVE-2025-50191

Indicators of Compromise

  • Unusual POST requests to /main/exercise/hotpotatoes.php containing SQL syntax in the userFile parameter
  • Database error messages appearing in application logs related to HotPotatoes file uploads
  • Anomalous file upload attempts with filenames containing special characters such as quotes, semicolons, or SQL keywords

Detection Strategies

  • Implement web application firewall (WAF) rules to detect SQL injection patterns in POST parameters targeting the HotPotatoes endpoint
  • Monitor web server access logs for requests to /main/exercise/hotpotatoes.php with unusually long or malformed filenames
  • Deploy intrusion detection signatures to identify error-based SQL injection techniques in HTTP traffic

Monitoring Recommendations

  • Enable detailed logging for all file upload operations in Chamilo LMS
  • Configure database query logging to detect anomalous or malformed queries originating from the web application
  • Set up alerts for HTTP 500 errors or database exceptions from the hotpotatoes.php script

How to Mitigate CVE-2025-50191

Immediate Actions Required

  • Upgrade Chamilo LMS to version 1.11.30 or later immediately
  • If immediate upgrade is not possible, restrict access to /main/exercise/hotpotatoes.php at the web server level
  • Review database audit logs for evidence of exploitation attempts
  • Consider temporarily disabling HotPotatoes exercise functionality until patching is complete

Patch Information

Chamilo has released version 1.11.30 which addresses this SQL injection vulnerability. The patch ensures that filenames from uploaded files are properly sanitized using the api_replace_dangerous_char() function before being used in any database operations. The fix moves the filename sanitization to occur earlier in the code path, ensuring the sanitized value is used consistently throughout the upload process.

Administrators should apply the update by downloading the latest release from the official Chamilo GitHub repository and following the standard upgrade procedures. For detailed technical information about the fix, refer to the GitHub Security Advisory.

Workarounds

  • Implement WAF rules to block requests containing SQL injection patterns in file upload parameters
  • Restrict access to the HotPotatoes functionality to trusted administrators only
  • Apply network-level access controls to limit exposure of the Chamilo LMS administration interface
bash
# Apache configuration to restrict access to vulnerable endpoint
<Location /main/exercise/hotpotatoes.php>
    Require ip 192.168.1.0/24
    # 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.0

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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 Changes

  • GitHub Security Advisory GHSA-82qx-25j7-5639
  • Related CVEs
  • CVE-2026-28430: Chamilo LMS SQL Injection Vulnerability

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

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

  • CVE-2025-50189: 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