CVE-2026-51883 Details
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.
A directory traversal vulnerability has been identified in Langchain-Chatchat versions 0.3.0 and 0.3.1. The issue arises in the knowledge base creation and document upload interfaces, where user-controlled input is not properly validated. Attackers can exploit this by injecting path traversal sequences into the 'knowledge_base_name' parameter, leading to the creation of knowledge bases and the uploading of documents to arbitrary locations outside the designated knowledge base root directory. This vulnerability is particularly effective on Windows systems, where backslash-based traversal sequences can bypass existing checks.
The vulnerability can be addressed by implementing proper validation and sanitization of the 'knowledge_base_name' parameter to prevent path traversal sequences from being injected. This can be done by rejecting names that include traversal sequences or absolute paths, and by normalizing the paths to ensure they stay within the intended directory.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 1, 2026CISA-ADP
Assessed Oct 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/chatchat-space/Langchain-Chatchat/issues/5467 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://gist.github.com/Ro1ME/30f5139a2920bf7075299a33eb1690f2 | [email protected] | Technical Description |
| https://github.com/chatchat-space/Langchain-Chatchat/issues/5467 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Langchain-Chatchat | 0.3.0 (semver) 0.3.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 5, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2026 | New CVE Received | [email protected] |
Volerion