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.
History

Mon, 05 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
Title Path Traversal Allowing Arbitrary File Write in Langchain Chatchat Temporary Upload Endpoint

Mon, 05 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 01 Oct 2026 23:30:00 +0000

Type Values Removed Values Added
Title Path Traversal Allowing Arbitrary File Write in Langchain Chatchat Temporary Upload Endpoint
Weaknesses CWE-22

Thu, 01 Oct 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Chatchat-space
Chatchat-space langchain-chatchat
Vendors & Products Chatchat-space
Chatchat-space langchain-chatchat

Thu, 01 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
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.
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published: 2026-10-01T00:00:00.000Z

Updated: 2026-10-05T18:56:05.675Z

Reserved: 2026-06-08T00:00:00.000Z

Link: CVE-2026-51884

cve-icon Vulnrichment

Updated: 2026-10-05T18:56:00.692Z

cve-icon NVD

Status : Deferred

Published: 2026-10-01T22:17:03.257

Modified: 2026-10-05T19:17:21.813

Link: CVE-2026-51884

cve-icon Redhat

No data.