Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-2358

CVE-2024-2358: Lollms Web UI RCE Vulnerability

CVE-2024-2358 is a path traversal vulnerability in Lollms Web UI that enables remote code execution through the /apply_settings endpoint. This article covers technical details, affected versions, exploitation risks, and mitigation.

Published: April 15, 2026

CVE-2024-2358 Overview

A critical path traversal vulnerability exists in the /apply_settings endpoint of parisneo/lollms-webui that enables attackers to achieve remote code execution. The vulnerability stems from insufficient sanitization of user-supplied input within the configuration settings, specifically affecting the extensions parameter. Attackers can exploit this flaw by crafting malicious payloads containing relative path traversal sequences (../../../), allowing them to navigate to arbitrary directories on the target system. This capability enables the server to load and execute a malicious __init__.py file planted by the attacker, resulting in complete system compromise through remote code execution.

Critical Impact

This vulnerability allows unauthenticated remote attackers to execute arbitrary code on the server hosting lollms-webui, potentially leading to complete system compromise, data theft, and lateral movement within the network.

Affected Products

  • parisneo/lollms-webui (all versions)
  • lollms lollms_web_ui

Discovery Timeline

  • 2024-05-16 - CVE-2024-2358 published to NVD
  • 2025-07-09 - Last updated in NVD database

Technical Details for CVE-2024-2358

Vulnerability Analysis

This path traversal vulnerability (CWE-29) affects the /apply_settings endpoint in parisneo/lollms-webui. The vulnerability is network-accessible and requires no authentication or user interaction to exploit. The impact is severe across all three CIA triad pillars: attackers can read sensitive data (confidentiality), modify system files and configurations (integrity), and disrupt service availability through malicious code execution (availability).

The exploitation chain involves two distinct phases: first, the attacker leverages the path traversal flaw to escape the intended directory structure; second, the application's extension loading mechanism is abused to execute arbitrary Python code contained in a crafted __init__.py file.

Root Cause

The root cause of this vulnerability is improper input validation and sanitization of the extensions parameter within the /apply_settings endpoint. The application fails to properly neutralize special elements such as ../ sequences before using user-supplied paths in file system operations. This allows attackers to break out of the intended extensions directory and reference arbitrary locations on the file system.

The vulnerability is classified under CWE-29 (Path Traversal: '..\filename'), indicating the application's failure to properly validate pathnames that include directory traversal sequences.

Attack Vector

The attack is conducted over the network without requiring any authentication or privileges. An attacker can send a malicious HTTP request to the /apply_settings endpoint containing specially crafted path traversal sequences in the extensions parameter.

The exploitation process involves:

  1. The attacker places a malicious __init__.py file in a known location on the target system or a location accessible via network shares
  2. The attacker sends a request to /apply_settings with an extensions parameter value containing path traversal sequences (e.g., ../../../path/to/malicious/extension)
  3. The server processes the request without proper sanitization, resolving the relative path to the attacker-controlled directory
  4. The application's extension loading mechanism executes the malicious __init__.py file, granting the attacker arbitrary code execution on the server

Detection Methods for CVE-2024-2358

Indicators of Compromise

  • HTTP requests to /apply_settings endpoint containing path traversal sequences such as ../, ..%2f, or ..%5c
  • Unexpected __init__.py files appearing outside of legitimate extension directories
  • Anomalous Python process execution originating from non-standard directory paths
  • Log entries showing configuration changes to the extensions parameter with unusual path values

Detection Strategies

  • Deploy web application firewall (WAF) rules to detect and block path traversal patterns in HTTP request parameters
  • Implement file integrity monitoring on the lollms-webui installation directory and system directories
  • Enable detailed logging for the /apply_settings endpoint and monitor for requests containing relative path indicators
  • Use endpoint detection and response (EDR) solutions to detect suspicious Python script execution patterns

Monitoring Recommendations

  • Monitor web server access logs for repeated requests to /apply_settings with encoded path traversal sequences
  • Set up alerts for any configuration changes to the extensions parameter
  • Track file system activity in directories commonly targeted by path traversal attacks (e.g., /etc, /tmp, user home directories)
  • Monitor for new Python processes spawned by the lollms-webui application

How to Mitigate CVE-2024-2358

Immediate Actions Required

  • Restrict network access to lollms-webui instances to trusted networks only until a patch is applied
  • Implement WAF rules to block requests containing path traversal sequences targeting the /apply_settings endpoint
  • Disable or remove the extensions functionality if not required for operations
  • Review logs for any evidence of prior exploitation attempts

Patch Information

Consult the Huntr Bounty Listing for the latest information on available patches and version updates. Update to the latest version of parisneo/lollms-webui once a security fix has been released by the maintainers.

Workarounds

  • Deploy the application behind a reverse proxy with strict input validation rules that sanitize path traversal sequences
  • Implement network segmentation to limit the blast radius if exploitation occurs
  • Run the lollms-webui application with minimal file system permissions to limit the impact of successful exploitation
  • Consider containerizing the application with read-only file system mounts where possible
bash
# Example: Restrict file system access for lollms-webui process
# Create a dedicated user with minimal permissions
sudo useradd -r -s /bin/false lollms-service

# Set restrictive permissions on the application directory
sudo chown -R lollms-service:lollms-service /opt/lollms-webui
sudo chmod -R 750 /opt/lollms-webui

# Run the application as the restricted user
sudo -u lollms-service python /opt/lollms-webui/app.py

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLollms

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability3.16%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-29
  • Vendor Resources
  • Huntr Bounty Listing
  • Related CVEs
  • CVE-2024-4326: Lollms Web UI RCE Vulnerability

  • CVE-2024-4320: Lollms Web UI RCE Vulnerability

  • CVE-2024-2359: Lollms Web UI RCE Vulnerability

  • CVE-2026-1115: Lollms Stored XSS Vulnerability
Default Legacy - Prefooter | 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