# CVE-2026-34371: LibreChat Affected by Arbitrary File Write via `execute_code` Artifact Filename Traversal

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-07T21:08:13.175Z
- Modified: 2026-07-24T22:10:00.140Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- danny-avila LibreChat: < 0.8.4
- librechat librechat: before 0.8.4

## References

- <https://github.com/danny-avila/LibreChat/security/advisories/GHSA-qrm5-r67f-6692> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-34371](https://www.cve.org/CVERecord?id=CVE-2026-34371), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2026-34371](https://nvd.nist.gov/vuln/detail/CVE-2026-34371), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-34371 · Whole record: https://cve.day/CVE-2026-34371.json · Rebuilt by cve.day 2026-11-25T22:59:18.183Z
