CVE-2026-75128
CriticalCVSS 9.8Summary
Langchain-Chatchat through 0.3.1.3 exposes a POST /tools/call API endpoint that invokes any registered tool by name without authentication, leaving the always-registered shell tool callable. Remote attackers can send a single request naming the shell tool to execute arbitrary OS commands as the server user (root in the shipped Docker image).
Risk Assessment
Unauthenticated remote command execution as root can lead to full server compromise and data leakage.
Recommendation
Update Langchain-Chatchat to a version later than 0.3.1.3, remove or secure the shell tool, and implement authentication on API endpoints.
Other vulnerabilities in Langchain-Chatchat
See all- CVE-2026-51884Critical
Path traversal vulnerability in the /knowledge_base/upload_temp_docs endpoint in Langchain Chatchat 0.3.1. An attacker can write files to arbitrary locations on the server using malicious filenames, bypassing temporary directory restrictions.
- CVE-2026-51883Critical
Path traversal vulnerability in knowledge base creation and document upload interfaces in Langchain-Chatchat 0.3.0 and 0.3.1. An attacker can inject path traversal sequences (such as `..\`) into the `knowledge_base_name` parameter to write knowledge base content outside the configured root directory.
- CVE-2026-51882Critical
Path traversal vulnerability in the OpenAI-compatible file upload endpoint `/v1/files` in Langchain-Chatchat 0.3.0. An attacker can write files to arbitrary locations outside the `openai_files` directory using malicious filenames.
- CVE-2026-7847Low
A vulnerability in Langchain-Chatchat up to version 0.3.1.3 in the _get_file_id function of the Uploaded File Handler component generates insufficiently random values, potentially allowing an attacker to predict file IDs. The attack requires local network access and is considered difficult.
- CVE-2026-7846Low
In Langchain-Chatchat up to version 0.3.1.3, the OpenAI-Compatible File Upload API has a time-of-check time-of-use (TOCTOU) vulnerability when processing the file.filename argument. The exploit is public and the project has not responded.
- CVE-2026-7845Low
In Langchain-Chatchat up to 0.3.1.3, a vulnerability was found in the function PIL.Image.tobytes of dialogue.py in the Vision Chat Paste Image Handler component. Manipulation of the paste_image.image_data argument leads to use of weak hash. Local network access is required and the attack is difficult.
- CVE-2026-7844Medium
In Langchain-Chatchat up to version 0.3.1.3, a vulnerability involves missing authentication in the Compatible File Service component. Functions files/list_files/retrieve_file/retrieve_file_content/delete_file in openai_routes.py lack authentication. The attack requires local network access. The exploit is public.
Original NVD description (English source)
Langchain-Chatchat through 0.3.1.3 exposes a POST /tools/call API endpoint that invokes any registered tool by name without authentication, leaving the always-registered shell tool callable. Remote attackers can send a single request naming the shell tool to execute arbitrary OS commands as the server user (root in the shipped Docker image).
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

