A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-10361

CVE-2024-10361: LibreChat Path Traversal Vulnerability

CVE-2024-10361 is a path traversal vulnerability in LibreChat v0.7.5-rc2 affecting the /api/files endpoint. Attackers can delete arbitrary files on the server. This article covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2024-10361 Overview

CVE-2024-10361 is an arbitrary file deletion vulnerability in danny-avila/librechat version 0.7.5-rc2. The flaw resides in the /api/files endpoint, which fails to properly validate user-supplied input. Attackers can submit path traversal sequences to delete files outside the intended upload directory. Successful exploitation allows unauthenticated deletion of critical system files, user data, and application resources. The vulnerability is categorized under [CWE-22] Improper Limitation of a Pathname to a Restricted Directory.

Critical Impact

Unauthenticated remote attackers can delete arbitrary files on the server, breaking application integrity and availability.

Affected Products

  • LibreChat 0.7.5-rc2
  • Self-hosted LibreChat deployments exposing /api/files
  • Container and Docker-based LibreChat instances running the affected release

Discovery Timeline

  • 2025-03-20 - CVE-2024-10361 published to NVD
  • 2025-10-15 - Last updated in NVD database

Technical Details for CVE-2024-10361

Vulnerability Analysis

The vulnerability exists in LibreChat's file management API. The /api/files endpoint accepts a file identifier or path from the request and passes it to a deletion routine without sanitization. Attackers can embed ../ sequences in the supplied value to escape the upload directory. The server resolves the traversal and deletes the targeted file with the privileges of the LibreChat process.

The issue affects integrity and availability. An attacker can remove configuration files, database artifacts, user uploads, or system binaries reachable by the application user. Repeated abuse can render the application or host unusable. Because the endpoint is network-reachable and requires no authentication context for exploitation, the attack surface extends to any exposed LibreChat deployment.

Root Cause

The root cause is missing input validation on file path parameters consumed by the deletion handler. The code does not canonicalize the supplied path, does not enforce a base directory allowlist, and does not reject traversal characters. This pattern aligns with [CWE-22] path traversal.

Attack Vector

Exploitation occurs over the network against the /api/files route. An attacker crafts an HTTP request supplying a path containing .. segments to reference files outside the upload root. The server resolves the path and unlinks the targeted file.

javascript
// Patch excerpt from api/server/controllers/agents/v1.js
// Source: https://github.com/danny-avila/librechat/commit/0b744db1e2af31a531ffb761584d85540430639c
       return res.status(400).json({ message: 'Agent ID is required' });
     }
 
-    let { avatar: _avatar = '{}' } = req.body;
-
     const image = await uploadImageBuffer({
       req,
       context: FileContext.avatar,

The patch removes untrusted avatar metadata handling that fed into file operations, eliminating the path-derivation primitive abused by attackers. See the GitHub commit for the complete fix and the Huntr bug bounty report for disclosure details.

Detection Methods for CVE-2024-10361

Indicators of Compromise

  • HTTP requests to /api/files containing path traversal sequences such as ../, ..%2f, or URL-encoded variants
  • Unexpected unlink or file deletion events on the LibreChat host targeting paths outside the configured upload directory
  • Missing configuration files, environment files, or user uploads with no corresponding administrative action
  • Application errors or crashes referencing missing files in LibreChat or supporting services

Detection Strategies

  • Inspect web server and reverse proxy logs for DELETE or related requests to /api/files containing traversal patterns
  • Enable filesystem auditing (auditd on Linux) on directories adjacent to the LibreChat upload root and alert on deletions by the LibreChat service account
  • Correlate API access logs with filesystem change events to identify files removed in response to suspicious requests

Monitoring Recommendations

  • Forward LibreChat application logs and web access logs to a centralized analytics platform for path traversal pattern matching
  • Baseline normal file deletion volume on the application host and alert on deviations
  • Track failed and successful authentication attempts against the LibreChat API to identify reconnaissance preceding exploitation

How to Mitigate CVE-2024-10361

Immediate Actions Required

  • Upgrade LibreChat to a release containing commit 0b744db1e2af31a531ffb761584d85540430639c or later
  • Restrict network exposure of the /api/files endpoint to authenticated internal users where possible
  • Run the LibreChat process under a least-privilege account that cannot delete system or sibling-application files
  • Audit the host for evidence of unauthorized file deletions and restore from backups where required

Patch Information

The maintainers addressed the issue in the upstream repository. The fix is included in the commit referenced by the vendor advisory. Operators must update to a build that incorporates this commit. No vendor-supplied workaround exists for the unpatched version.

Workarounds

  • Place LibreChat behind a web application firewall and block requests to /api/files containing .., %2e%2e, or other traversal encodings
  • Mount the LibreChat upload directory on a dedicated filesystem with no symbolic links to sensitive locations
  • Apply mandatory access controls (AppArmor or SELinux) that restrict the LibreChat process to its working directories
bash
# Example nginx rule to block traversal sequences targeting the files API
location /api/files {
    if ($request_uri ~* "(\.\.|%2e%2e)") {
        return 400;
    }
    proxy_pass http://librechat_upstream;
}

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechLibrechat

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • Huntr Bug Bounty Report
  • Vendor Resources
  • GitHub Commit Changes
  • Related CVEs
  • CVE-2026-34371: LibreChat Path Traversal Vulnerability

  • CVE-2026-31943: LibreChat SSRF Vulnerability

  • CVE-2026-31945: Librechat SSRF Vulnerability

  • CVE-2026-31950: LibreChat Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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