Description
The OpenAI-compatible file upload endpoint `/v1/files` in Langchain-Chatchat 0.3.0 is vulnerable to path traversal. An attacker can write files to arbitrary locations outside the `openai_files` directory by crafting malicious filenames.
Published: 2026-10-01
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Write
Action: Patch
AI Analysis

Impact

This vulnerability is a path traversal flaw in the /v1/files uploading endpoint of Langchain‑Chatchat 0.3.0, allowing an attacker to craft filenames that result in files being written outside the intended openai_files directory. The capability to write arbitrary files can lead to significant confidentiality, integrity, or availability impacts, such as overwriting configuration files or deploying malicious content. Based on the nature of the flaw, it is inferred that placing executable files could potentially enable remote code execution if sufficient privileges are present.

Affected Systems

The affected system is Langchain‑Chatchat version 0.3.0, an open‑source framework that implements an OpenAI‑compatible API for file uploads. All deployments exposing the default /v1/files endpoint are vulnerable and must be assessed.

Risk and Exploitability

Based on the vulnerability description, it is inferred that the flaw can be exploited remotely via the /v1/files endpoint. Attackers can manipulate the uploaded filename to place files anywhere on the filesystem of the host running Langchain‑Chatchat. This provides a high potential for data breach or system compromise. The CVSS score of 9.1 indicates a critical severity, and the EPSS score of < 1% suggests low but nonzero exploitation probability. The vulnerability is not listed in the CISA KEV catalog, but the path traversal weakness itself presents a significant risk. Immediate action is recommended until an official fix is released.

Generated by OpenCVE AI on October 7, 2026 at 17:13 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a patched version of Langchain‑Chatchat that resolves the path traversal flaw when it becomes available.
  • Restrict access to the /v1/files endpoint by requiring authentication or limiting access to trusted IP ranges.
  • Add defensive logic to the upload handler to normalize and validate file paths, ensuring that all uploaded files are confined to the openai_files directory, or switch to a secure file upload library that mitigates traversal attacks.

Generated by OpenCVE AI on October 7, 2026 at 17:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 07 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Title Path Traversal in Langchain-Chatchat File Upload Endpoint

Wed, 07 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 02 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
First Time appeared Chatchat-space
Chatchat-space langchain-chatchat
Vendors & Products Chatchat-space
Chatchat-space langchain-chatchat

Thu, 01 Oct 2026 23:45:00 +0000

Type Values Removed Values Added
Title Path Traversal in Langchain-Chatchat File Upload Endpoint
Weaknesses CWE-22

Thu, 01 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
Description The OpenAI-compatible file upload endpoint `/v1/files` in Langchain-Chatchat 0.3.0 is vulnerable to path traversal. An attacker can write files to arbitrary locations outside the `openai_files` directory by crafting malicious filenames.
References

Subscriptions

Chatchat-space Langchain-chatchat
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-07T14:52:16.785Z

Reserved: 2026-06-08T00:00:00.000Z

Link: CVE-2026-51882

cve-icon Vulnrichment

Updated: 2026-10-07T14:51:22.412Z

cve-icon NVD

Status : Deferred

Published: 2026-10-01T22:17:03.003

Modified: 2026-10-07T15:17:22.240

Link: CVE-2026-51882

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T17:15:15Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')