{"id":"CVE-2026-34371","published":"2026-04-07T21:08:13Z","modified":"2026-04-08T16:14:43Z","title":"LibreChat Affected by Arbitrary File Write via `execute_code` Artifact Filename Traversal","vendor":"danny-avila","product":"LibreChat","tier":"tail","description":{"text":"LibreChat is a ChatGPT clone with additional features. Prior to 0.8.4, LibreChat trusts the name field returned by the execute_code sandbox when persisting code-generated artifacts. On deployments using the default local file strategy, a malicious artifact filename containing traversal sequences (for example, ../../../../../app/client/dist/poc.txt) is concatenated into the server-side destination path and written with fs.writeFileSync() without sanitization. This gives any user who can trigger execute_code an arbitrary file write primitive as the LibreChat server user. This vulnerability is fixed in 0.8.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00275,"percentile":0.19908,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/danny-avila/LibreChat/security/advisories/GHSA-qrm5-r67f-6692","tags":["x_refsource_CONFIRM"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":3.98},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"danny-avila","affectedVersions":[{"vendor":"danny-avila","product":"LibreChat","versions":["< 0.8.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-08T16:10:31.032341Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-19946","exploited":false,"provenance":"source"}}