CVE-2026-30617

Remote Code Execution via MCP STDIO Server Configuration in LangChain-ChatChat 0.3.1

Published Apr 15, 2026 CVSS 3.1 · 8.6 High EPSS < 1% KEV · Not listed
Description
LangChain-ChatChat 0.3.1 contains a remote code execution vulnerability in its MCP STDIO server configuration and execution handling. A remote attacker can access the publicly exposed MCP management interface and configure an MCP STDIO server with attacker-controlled commands and arguments. When the MCP server is started and MCP is enabled for agent execution, subsequent agent activity triggers execution of arbitrary commands on the server. Successful exploitation allows arbitrary command execution within the context of the LangChain-ChatChat service.

Analysis

AI-generated

Technical impact

LangChain-ChatChat 0.3.1 contains a remote code execution flaw that allows an attacker to configure the MCP STDIO server with arbitrary commands through a publicly exposed management interface. Once the server is started and agent execution is enabled, the configured commands are executed during subsequent agent activity, giving the attacker unrestricted execution inside the LangChain-ChatChat service. The vulnerability stems from a lack of proper validation of command inputs, enabling arbitrary command injection. The likely attack vector is a network-based request to the MCP management interface exposed to the internet.

Affected Systems

The affected product is LangChain-ChatChat version 0.3.1. No other vendors or product variants are listed; the vulnerability is tied to the specific MCP STDIO server component of this version.

Risk and Exploitability

Because the attack does not require local privilege and only needs access to the management interface, it poses a high‑severity risk. The CVSS score is 8.6, and EPSS is not available, so exploitation probability is unknown, but the nature of remote code execution means a successful exploit would give attackers full control over the service. The vulnerability is not currently listed in CISA’s KEV catalog, yet its potential impact warrants close monitoring.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Block or proxy the MCP management interface so that only authorized, internal hosts can reach it.
  • Disable or remove the MCP STDIO server configuration that accepts external command inputs, or configure it to use a safe default that does not execute arbitrary commands.
  • Update LangChain-ChatChat to a patched version when released, or apply any vendor‑supplied workaround; if no patch is available, consider disabling remote agent execution until a fix is provided.

Generated by OpenCVE AI on April 15, 2026 at 22:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Remote Code Execution via MCP STDIO Server Configuration in LangChain-ChatChat 0.3.1
Type Values Removed Values Added
First Time appeared Langchain
Langchain langchain
Vendors & Products Langchain
Langchain langchain
Type Values Removed Values Added
Weaknesses CWE-77
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description LangChain-ChatChat 0.3.1 contains a remote code execution vulnerability in its MCP STDIO server configuration and execution handling. A remote attacker can access the publicly exposed MCP management interface and configure an MCP STDIO server with attacker-controlled commands and arguments. When the MCP server is started and MCP is enabled for agent execution, subsequent agent activity triggers execution of arbitrary commands on the server. Successful exploitation allows arbitrary command execution within the context of the LangChain-ChatChat service.
References
Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 15, 2026, 6:00 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Deferred
Published
Apr 15, 2026, 4:16 PM
Modified
Jun 17, 2026, 10:32 AM