Arbitrary File Write Vulnerability in LibreChat by Danny Avila
CVE-2026-34371
6.3MEDIUM
What is CVE-2026-34371?
LibreChat, a ChatGPT clone, suffers from an arbitrary file write vulnerability due to improper handling of the name field returned by the execute_code sandbox prior to version 0.8.4. This flaw allows attackers to exploit traversal sequences in filenames, thereby enabling unauthorized file creation or modification on the server. The vulnerability removes the necessary safeguards, allowing users leveraging execute_code to write files as the server user, posing a significant risk to the integrity and security of the system. The issue has been remediated in version 0.8.4.
Affected Version(s)
LibreChat < 0.8.4
