Description
The knowledge base creation and document upload interfaces in Langchain-Chatchat 0.3.0;0.3.1 is vulnerable to path traversal. An attacker can inject path traversal sequences (such as `..\`) into the `knowledge_base_name` parameter to write knowledge base content to arbitrary locations outside the configured knowledge base root directory.
Published: 2026-10-01
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary file write via directory traversal
Action: Apply Patch
AI Analysis

Impact

The vulnerability is a directory traversal flaw present in the knowledge base creation and document upload endpoints of Langchain‑Chatchat versions 0.3.0 and 0.3.1. The flaw allows an attacker to inject sequences such as `..\` into the `knowledge_base_name` parameter, causing the application to write or overwrite files outside the configured knowledge base root. This could be used to create arbitrary files on the server, including configuration or executable scripts. Based on the description, it is inferred that an attacker could exploit this to gain elevated privileges or exfiltrate sensitive data by placing malicious files in privileged locations.

Affected Systems

Langchain‑Chatchat 0.3.0 and 0.3.1 are affected. No vendor or product variants are recognized in this vulnerability record. The issue appears in the stated repository versions and affects the knowledge base functionality of the application.

Risk and Exploitability

The CVSS score is 9.1 and the EPSS score is < 1%, indicating high severity but low probability of exploitation. Path traversal that enables arbitrary file writes is considered a high‑severity weakness, particularly when the exposed web interface is accessible to untrusted users. The vulnerability is not listed in CISA KEV, which indicates that no publicly known exploitation activity is documented yet. The likely attack vector is remote via HTTP requests to the exposed API endpoints, and exploitation would require authenticated or unauthenticated access to the knowledge base creation/upload routes.

Generated by OpenCVE AI on October 5, 2026 at 21:22 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Langchain‑Chatchat to a release in which the path traversal flaw has been fixed, or apply a community patch that addresses the issue.
  • Validate the `knowledge_base_name` input on the server side, rejecting any string containing the sequence `..` or absolute path characters before processing.
  • Restrict the application's file‑write permissions so that it can only write to the designated knowledge base directory, preventing writes to critical or system paths.
  • Limit access to the knowledge base creation and document upload endpoints to authenticated and authorized users only, reducing the attack surface.

Generated by OpenCVE AI on October 5, 2026 at 21:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 06 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 05 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
Title Path Traversal in Langchain‑Chatchat Knowledge Base Creation and Upload

Mon, 05 Oct 2026 19: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'}


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

Type Values Removed Values Added
Title Path Traversal in Langchain‑Chatchat Knowledge Base Creation and Upload
Weaknesses CWE-22

Thu, 01 Oct 2026 23: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 21:45:00 +0000

Type Values Removed Values Added
Description The knowledge base creation and document upload interfaces in Langchain-Chatchat 0.3.0;0.3.1 is vulnerable to path traversal. An attacker can inject path traversal sequences (such as `..\`) into the `knowledge_base_name` parameter to write knowledge base content to arbitrary locations outside the configured knowledge base root directory.
References

Subscriptions

Chatchat-space Langchain-chatchat
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-05T18:36:38.045Z

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

Link: CVE-2026-51883

cve-icon Vulnrichment

Updated: 2026-10-05T18:36:25.605Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-10-05T19:17:21.630

Link: CVE-2026-51883

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-05T21:30:19Z

Weaknesses
  • CWE-22

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