CVE-2025-6853: Langchain-Chatchat · Path Traversal
Affects Langchain-ChatchatSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 47% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 29 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubchatchat-space/Langchain-Chatchatpkg:github/chatchat-space/Langchain-ChatchatOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Since no official patches are currently available, European organizations should implement the following specific mitigations: 1) Immediately audit and restrict access permissions on the server directories related to Langchain-Chatchat, ensuring the backend process runs with the least privilege necessary to limit file system exposure. 2) Implement web application firewall (WAF) rules to detect and block suspicious path traversal patterns in HTTP requests targeting the /knowledge_base/upload_temp_docs endpoint, particularly those manipulating the 'flag' parameter. 3) Conduct thorough input validation and sanitization on all user-supplied parameters, especially those controlling file paths, to prevent traversal sequences such as '../'. 4) Monitor logs for unusual access patterns or failed attempts to access unauthorized files, enabling early detection of exploitation attempts. 5) Isolate the Langchain-Chatchat backend service within a segmented network zone to contain potential breaches. 6) Prepare for rapid patch deployment by tracking vendor updates and subscribing to vulnerability advisories. 7) Consider temporary disabling or restricting the upload_temp_docs functionality if feasible until a patch is released. These targeted actions go beyond generic advice by focusing on immediate containment and detection strategies tailored to the vulnerability's characteristics.
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.