CVE-2026-34371: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in danny-avila LibreChat
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 Analysis
Technical Summary
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.
CVE-2026-34371: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in danny-avila 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.