CVE-2026-51884 Details
Description
The /knowledge_base/upload_temp_docs temporary document upload endpoint in Langchain Chatchat 0.3.1 is vulnerable to path traversal. By crafting malicious filenames, an attacker can write files to arbitrary locations on the server, bypassing the intended restrictions on the temporary directory.
A path traversal vulnerability has been identified in Langchain Chatchat version 0.3.1, specifically within the temporary document upload endpoint '/knowledge_base/upload_temp_docs'. This vulnerability allows attackers to craft malicious filenames that can write files to arbitrary locations on the server, bypassing restrictions intended to keep files within a designated temporary directory.
Langchain Chatchat should implement proper filename validation and sanitization to prevent path traversal. This includes using functions to strip directory components, check that resolved paths remain within intended directories, and apply path traversal protection mechanisms. Additionally, any malicious files should be removed after the session ends.
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/5466 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://gist.github.com/Ro1ME/da028c9ce13dd888e265b9bef01d6eca | [email protected] | Technical Description |
| https://github.com/chatchat-space/Langchain-Chatchat/issues/5466 | [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.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