Vulnerability  ·  2026-10-21

Langchain-Chatchat unauthenticated RCE via POST /tools/call shell tool

VulnerabilityHigh impactGlobalCVE-2026-75128
Langchain-Chatchat through 0.3.1.3 exposes a POST /tools/call API endpoint that invokes any registered tool by name without any authentication, leaving the always-registered shell tool callable. A remote attacker sends a single request naming the shell tool to execute arbitrary OS commands as the server user — root in the shipped Docker image.
This turns a public chat/RAG backend into a pre-auth root shell. Because ChatChat is a widely-deployed Chinese RAG/chatbot framework often exposed to the internet, an attacker can pivot to the host, read the LLM/database credentials the service holds, and tamper with the knowledge base or model pipeline.
Unauthenticated POST /tools/call naming the always-registered shell tool
Langchain-Chatchat <= 0.3.1.3 (pypi langchain-chatchat)
Upgrade to a fixed release and add authentication/allow-listing on /tools/call; restrict which tools are registered server-side
NVD — CVE-2026-75128VulnCheck advisory
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →