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

CVE-2024-3322: Lollms Web UI Path Traversal Vulnerability

CVE-2024-3322 is a path traversal flaw in Lollms Web UI that enables attackers to read and overwrite arbitrary files through improper path sanitization. This article covers technical details, affected versions, and mitigation.

Published: April 8, 2026

CVE-2024-3322 Overview

A path traversal vulnerability exists in the 'cyber_security/codeguard' native personality of the parisneo/lollms-webui, affecting versions up to 9.5. The vulnerability arises from the improper limitation of a pathname to a restricted directory in the process_folder function within lollms-webui/zoos/personalities_zoo/cyber_security/codeguard/scripts/processor.py. Specifically, the function fails to properly sanitize user-supplied input for the code_folder_path, allowing an attacker to specify arbitrary paths using ../ sequences or absolute paths. This flaw leads to arbitrary file read and overwrite capabilities in specified directories without limitations, posing a significant risk of sensitive information disclosure and unauthorized file manipulation.

Critical Impact

This vulnerability enables unauthenticated attackers to read and overwrite arbitrary files on the server through path traversal sequences, potentially leading to complete system compromise, sensitive data exfiltration, and unauthorized file manipulation.

Affected Products

  • LoLLMS WebUI versions up to and including 9.5
  • lollms:lollms_web_ui (all versions prior to patch)
  • cyber_security/codeguard personality module

Discovery Timeline

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

Technical Details for CVE-2024-3322

Vulnerability Analysis

This path traversal vulnerability (CWE-22) exists within the process_folder function of the codeguard personality module. The vulnerable function accepts a code_folder_path parameter from user input without implementing proper path canonicalization or directory traversal filtering. This allows attackers to escape the intended directory boundary and access files anywhere on the filesystem where the application has read/write permissions.

The vulnerability is particularly severe because it enables both arbitrary file read and arbitrary file write operations. An attacker can leverage the file read capability to exfiltrate sensitive configuration files, credentials, API keys, or other confidential data. The file write capability presents an even greater risk, as it could be used to overwrite critical system files, inject malicious code into application scripts, or establish persistent backdoor access.

Root Cause

The root cause of this vulnerability is the failure to implement proper input validation and path sanitization in the process_folder function. The code directly uses the user-supplied code_folder_path without:

  1. Normalizing the path to remove ../ sequences
  2. Validating that the resolved path remains within the intended directory
  3. Rejecting absolute paths that could point to arbitrary filesystem locations
  4. Implementing a proper allowlist of accessible directories

Attack Vector

The vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker can craft malicious requests containing path traversal sequences (e.g., ../../../../etc/passwd) or absolute paths (e.g., /etc/shadow) in the code_folder_path parameter. When processed by the vulnerable function, these payloads allow the attacker to:

  1. Read sensitive files outside the intended directory scope
  2. Overwrite existing files with attacker-controlled content
  3. Potentially achieve remote code execution by modifying executable scripts or configuration files

The patch updates the web assets to include the security fix:

text
     
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>LoLLMS WebUI - Welcome</title>
-    <script type="module" crossorigin src="/assets/index-98910268.js"></script>
-    <link rel="stylesheet" href="/assets/index-dbb96f42.css">
+    <script type="module" crossorigin src="/assets/index-91ab3091.js"></script>
+    <link rel="stylesheet" href="/assets/index-d4c7f2b1.css">
   </head>
   <body>
     <div id="app"></div>

Source: GitHub Commit

Detection Methods for CVE-2024-3322

Indicators of Compromise

  • HTTP requests containing ../ sequences or absolute paths in the code_folder_path parameter
  • Unusual file access patterns in application logs, particularly accessing files outside the expected codeguard directory
  • Unexpected modifications to system configuration files or application scripts
  • Log entries showing access attempts to sensitive files such as /etc/passwd, /etc/shadow, or application credential files

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal patterns including ../, ..%2f, and URL-encoded variants
  • Monitor application logs for suspicious file path requests containing directory traversal sequences
  • Deploy file integrity monitoring on critical system and application files to detect unauthorized modifications
  • Analyze network traffic for requests to the codeguard personality endpoint with anomalous path parameters

Monitoring Recommendations

  • Enable detailed logging for all requests to the LoLLMS WebUI application, particularly those targeting personality modules
  • Set up alerts for file access operations outside the designated application directories
  • Monitor for changes to the processor.py file and other critical application components
  • Implement endpoint detection and response (EDR) solutions to identify post-exploitation activities

How to Mitigate CVE-2024-3322

Immediate Actions Required

  • Update LoLLMS WebUI to the latest patched version immediately
  • If immediate patching is not possible, disable or restrict access to the codeguard personality module
  • Review system logs for evidence of exploitation attempts
  • Audit file system for unauthorized modifications, particularly in sensitive directories

Patch Information

The vendor has released a security patch addressing this vulnerability. The fix is available in commit 1e17df01e01d4d33599db2afaafe91d90b6f0189 on the official LoLLMS WebUI GitHub repository. Organizations running affected versions should upgrade to a version that includes this commit or later.

Workarounds

  • Implement network-level access controls to restrict access to the LoLLMS WebUI to trusted IP addresses only
  • Deploy a reverse proxy with path validation rules to filter requests containing traversal sequences before they reach the application
  • Disable the codeguard personality if it is not required for your use case
  • Run the application with minimal filesystem permissions to limit the impact of potential exploitation
bash
# Configuration example: Restrict network access to LoLLMS WebUI
# Add to firewall rules to limit access to trusted networks only
iptables -A INPUT -p tcp --dport 9600 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 9600 -j DROP

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechLollms

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.79%

  • 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-22
  • Technical References
  • Huntr Bounty Report
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2024-4315: parisneo/lollms Path Traversal Vulnerability

  • CVE-2024-1873: Lollms Web UI Path Traversal Vulnerability

  • CVE-2024-2361: Lollms Web UI Path Traversal 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