CVE-2025-6853 Details
Description
A vulnerability classified as critical has been found in chatchat-space Langchain-Chatchat up to 0.3.1. This affects the function upload_temp_docs of the file /knowledge_base/upload_temp_docs of the component Backend. The manipulation of the argument flag leads to path traversal. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
A critical path traversal vulnerability has been identified in the Langchain-Chatchat application by chatchat-space, affecting versions through 0.3.1. The issue arises in the backend component, specifically within the upload_temp_docs function of the knowledge_base/upload_temp_docs file. The vulnerability allows remote attackers to manipulate the flag argument, leading to unauthorized file writing. This exploitation is made possible by the application's failure to properly validate file paths, enabling attackers to traverse directories and overwrite files arbitrarily.
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.
CISA-ADP
Assessed Jun 30, 2025References 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/5352 | CISA-ADP | ExploitIssue Tracking |
| https://github.com/chatchat-space/Langchain-Chatchat/issues/5352 | [email protected] | ExploitIssue Tracking |
| https://vuldb.com/?ctiid.314325 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.314325 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.601155 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| chatchat-space langchain-chatchat | <= 0.3.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Sep 16, 2025 | Initial Analysis | [email protected] |
| Jun 30, 2025 | CVE Modified | CISA-ADP |
| Jun 29, 2025 | New CVE Received | [email protected] |