Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-34371: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in danny-avila LibreChat

0
Medium
VulnerabilityCVE-2026-34371cvecve-2026-34371cwe-22
Published: Tue Apr 07 2026 (04/07/2026, 21:08:13 UTC)
Source: CVE Database V5
Vendor/Project: danny-avila
Product: LibreChat

Description

CVE-2026-34371 is a path traversal vulnerability in LibreChat versions prior to 0. 8. 4. The issue arises because the application trusts the filename returned by the execute_code sandbox without sanitization when saving code-generated artifacts. This allows an attacker who can trigger execute_code to write arbitrary files on the server with the privileges of the LibreChat server user. The vulnerability is fixed in version 0. 8. 4.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/15/2026, 15:52:51 UTC

Technical Analysis

LibreChat, a ChatGPT clone, prior to version 0.8.4, improperly handles the 'name' field returned by its execute_code sandbox. When using the default local file storage strategy, malicious filenames containing directory traversal sequences (e.g., ../../../../../app/client/dist/poc.txt) are concatenated directly into the server-side file path and written without sanitization. This results in an arbitrary file write vulnerability (CWE-22) exploitable by any user able to invoke execute_code. The vulnerability is addressed in LibreChat 0.8.4.

Potential Impact

An attacker with the ability to trigger the execute_code function can write arbitrary files to the server filesystem as the LibreChat server user. This could lead to unauthorized modification of server files, potentially enabling further attacks or disruption of service. There is no direct confidentiality or availability impact indicated. The CVSS score is 6.3 (medium severity), reflecting the need for low privileges but high attack complexity.

Mitigation Recommendations

Upgrade LibreChat to version 0.8.4 or later, where this vulnerability is fixed. Since no official patch link or vendor advisory is provided, users should verify the version in use and apply the update accordingly. Patch status is not explicitly confirmed beyond the statement that the issue is fixed in 0.8.4, so checking the vendor's official release notes is recommended for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-27T13:43:14.369Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69d5779eaaed68159a6ad77d

Added to database: 4/7/2026, 9:31:10 PM

Last enriched: 4/15/2026, 3:52:51 PM

Last updated: 5/23/2026, 3:47:12 AM

Views: 67

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses