MediumVulnerabilityLLM-specific
CVE-2026-34371: LibreChat arbitrary file write through execute_code artifact filenames
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-34371
- Published
- Record updated
- 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.
Related items
- MediumCVE-2026-124248: GPTranslate WordPress plugin stored cross-site scripting via comment parameterSimilar attack · NVD/CVE Database
- MediumAmazon: China-Linked Hackers’ AI Agents Exploited Medical Software Zero-DaySimilar attack · SecurityWeek
- MediumAttackers' AI Agents Found a Zero-Day in Medical-Imaging Software and Gained Root AccessSimilar attack · The Hacker News
- MediumCVE-2026-54026: LibreChat message injection via conversationId in request bodySimilar attack · NVD/CVE Database
- MediumCVE-2026-54046: LibreChat unauthenticated account enumeration via /api/user/verifySimilar attack · NVD/CVE Database