Skip to main content
CVE-2025-6853VulnerabilityPublished Updated

CVE-2025-6853: Langchain-Chatchat · Path Traversal

Affects Langchain-ChatchatSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHubchatchat-space/Langchain-Chatchatpkg:github/chatchat-space/Langchain-ChatchatOther threatsAffected
  • =0.3.0
  • =0.3.1
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.

References

Community reviews

Loading reviews…