Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-34371: LibreChat arbitrary file write through execute_code artifact filenames

Identifier
CVE-2026-34371
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

LibreChat versions prior to 0.8.4 trust the name field returned by the execute_code sandbox when saving code-generated artifacts. On deployments using the default local file strategy, a filename containing traversal sequences such as ../../../../../app/client/dist/poc.txt is concatenated into the server-side destination path and written with fs.writeFileSync() without sanitization. Any user who can trigger execute_code gets an arbitrary file write as the LibreChat server user.

Mitigation

Fixed in 0.8.4.