Live threats

All CVEs

CVE-2026-51884

Path Traversal in Temporary Document Upload in Langchain Chatchat

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Oct 1, 2026
Updated
Oct 5, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

The /knowledge_base/upload_temp_docs endpoint in Langchain Chatchat 0.3.1 is vulnerable to path traversal. An unauthenticated attacker can craft malicious filenames to write files to arbitrary server locations, bypassing temporary directory restrictions.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

No patch data

Update Langchain Chatchat to a version later than 0.3.1 when available. In the meantime, restrict access to the /knowledge_base/upload_temp_docs endpoint.

Vendor advisory · github.com ↗

  1. Check whether you run any of the affected products and follow the vendor advisory.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Official sources

References

Links published by the sources. Open them with care.