CVE-2026-51884: Path Traversal

Published Oct 1, 2026
·
Updated

The /knowledgebase/uploadtempdocs 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.

Affected Software

1 affected component
Langchain Chatchat=0.3.1

Event History

Oct 1, 2026
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·10:17 PM
Description

Frequently Asked Questions

1

What does an attacker need to exploit this issue?

An attacker needs to be able to submit files to the /knowledge_base/upload_temp_docs endpoint and control the uploaded filename. Malicious path components in the filename can cause the server to write outside the intended temporary directory.

2

How can I determine whether my deployment is affected?

Deployments running Langchain Chatchat 0.3.1 should be treated as affected if the /knowledge_base/upload_temp_docs endpoint is available. Review upload handling and server file-write logs for filenames containing path traversal sequences or unexpected files written outside the temporary upload directory.

3

What can be done if updating is not immediately possible?

Restrict access to the temporary document upload endpoint to trusted users or disable it if it is not required. Enforce filename sanitization and canonical-path validation so that resolved upload paths remain within the designated temporary directory, and run the service with minimal filesystem permissions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203