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

CVE-2024-4320: Lollms Web UI RCE Vulnerability

CVE-2024-4320 is a remote code execution flaw in Lollms Web UI affecting the /install_extension endpoint. Attackers can exploit improper input handling to execute arbitrary code. This article covers technical details, impact, and mitigation.

Published: April 8, 2026

CVE-2024-4320 Overview

A critical remote code execution (RCE) vulnerability has been identified in the /install_extension endpoint of the parisneo/lollms-webui application. The vulnerability exists within the @router.post("/install_extension") route handler and stems from improper handling of the name parameter in the ExtensionBuilder().build_extension() method. This flaw enables local file inclusion (LFI) that can be leveraged for arbitrary code execution on the target system.

An attacker can exploit this vulnerability by crafting a malicious name parameter that causes the server to load and execute a __init__.py file from an arbitrary location, such as the upload directory for discussions. This vulnerability is particularly dangerous when the application is exposed to an external endpoint or operated in headless mode, as it allows remote code execution without requiring any user interaction.

Critical Impact

Unauthenticated attackers can achieve full remote code execution on systems running lollms-webui by exploiting the path traversal flaw in the extension installation endpoint, potentially leading to complete system compromise.

Affected Products

  • lollms lollms_web_ui (all versions)

Discovery Timeline

  • 2024-06-06 - CVE-2024-4320 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-4320

Vulnerability Analysis

This vulnerability combines path traversal (CWE-22) with improper restriction of pathname to a restricted directory (CWE-29) to achieve remote code execution. The attack does not require authentication and can be performed over the network without any user interaction, making it highly exploitable in exposed deployments.

The core issue lies in how the application processes the name parameter when building extensions. Instead of properly validating and sanitizing the input to ensure it references only legitimate extension directories, the application blindly accepts user-supplied path components. This allows an attacker to use directory traversal sequences (such as ../) to escape the intended extension directory and point to an attacker-controlled location.

Root Cause

The root cause of this vulnerability is insufficient input validation in the ExtensionBuilder().build_extension() method. The name parameter is passed directly into file path construction logic without proper sanitization or validation. This allows directory traversal sequences to manipulate the path resolution, enabling the application to load Python files from arbitrary locations on the filesystem.

The absence of path canonicalization or allowlist-based validation means that any user-supplied input containing path traversal characters can redirect the file loading mechanism to unintended directories, including the discussions upload directory where an attacker may have previously uploaded malicious content.

Attack Vector

The attack exploits the /install_extension endpoint by sending a POST request with a crafted name parameter containing path traversal sequences. The attack flow typically involves:

  1. Initial Setup: The attacker uploads a malicious __init__.py file to a known writable location, such as the discussions upload directory
  2. Exploitation: The attacker sends a POST request to /install_extension with a name parameter containing path traversal sequences pointing to the uploaded file's directory
  3. Code Execution: The server's ExtensionBuilder().build_extension() method resolves the malicious path and executes the __init__.py file, granting the attacker arbitrary code execution on the server

The vulnerability is especially severe in headless or externally-exposed deployments where no user authentication or interaction is required. For detailed technical information, see the Huntr Bug Bounty Report.

Detection Methods for CVE-2024-4320

Indicators of Compromise

  • HTTP POST requests to /install_extension endpoint containing path traversal sequences (../, ..\\) in request parameters
  • Unusual __init__.py files appearing in the discussions upload directory or other writable locations
  • Unexpected Python process activity or child processes spawned by the lollms-webui application
  • Web server logs showing requests to /install_extension with suspicious name parameter values

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal patterns in POST requests to the /install_extension endpoint
  • Monitor file system activity for creation of Python files in upload directories or other unexpected locations
  • Enable verbose logging for the lollms-webui application and review extension installation requests for anomalies
  • Use intrusion detection systems (IDS) to identify network traffic patterns consistent with exploitation attempts

Monitoring Recommendations

  • Configure real-time alerting for any POST requests to /install_extension containing .. or URL-encoded equivalents
  • Establish baseline behavior for the lollms-webui process and alert on deviations such as unexpected network connections or file system modifications
  • Monitor for new user accounts, scheduled tasks, or persistence mechanisms that may indicate post-exploitation activity

How to Mitigate CVE-2024-4320

Immediate Actions Required

  • Restrict network access to lollms-webui instances, ensuring they are not exposed to untrusted networks or the public internet
  • Disable the extension installation functionality if not required for operations
  • Implement network segmentation to isolate systems running lollms-webui from critical infrastructure
  • Review web server logs for evidence of exploitation attempts and investigate any suspicious activity

Patch Information

At the time of publication, no official patch information was provided in the CVE advisory. Users should monitor the official parisneo/lollms-webui repository for security updates and apply patches as they become available. Refer to the Huntr Bug Bounty Report for the latest information on remediation status.

Workarounds

  • Deploy a reverse proxy or WAF in front of the application to filter requests containing path traversal patterns
  • Restrict access to the /install_extension endpoint via IP allowlisting or authentication mechanisms
  • Run the application with minimal filesystem permissions to limit the impact of potential exploitation
  • Consider running lollms-webui in a containerized environment with restricted filesystem access and network capabilities
bash
# Example: Restrict access to install_extension endpoint using nginx
location /install_extension {
    # Block all access or restrict to trusted IPs only
    deny all;
    # Or allow specific IPs:
    # allow 192.168.1.0/24;
    # deny all;
}

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 Probability63.98%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/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

  • CWE-22
  • Technical References
  • Huntr Bug Bounty Report
  • Related CVEs
  • CVE-2024-2358: Lollms Web UI RCE Vulnerability

  • CVE-2024-4326: 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