Description
A security flaw has been discovered in Moonshot AI Kimi Code up to 0.31.0. The affected element is an unknown function of the file agent-core-v2/src/agent/mcp/config-loader.ts of the component MCP Configuration Loader. The manipulation results in os command injection. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks. Upgrading to version 0.31.1 is sufficient to fix this issue. It is recommended to upgrade the affected component. Beyond the trust prompt, the fix resolves fd/stty binaries to absolute paths specifically "so untrusted workspaces cannot plant bare-name executables before confirmation," fixing a secondary $PATH path-planting vector alongside the primary untrusted-.mcp.json auto-spawn.
Published: 2026-09-22
Score: 5.3 Medium
EPSS: 1.7% Low
KEV: No
Impact: Command Injection (Remote Code Execution)
Action: Immediate Patch
AI Analysis

Impact

The flaw is an OS command injection in the MCP Configuration Loader component of Moonshot AI Kimi Code. It allows an attacker to supply malicious input that is executed by the underlying operating system. This vulnerability falls under CWE-77 and CWE-78, meaning that arbitrary commands can be run with the privileges of the application. If exploited, an attacker can gain full control of the host, exfiltrate data, or deploy further malware.

Affected Systems

Moonshot AI Kimi Code versions up to and including 0.31.0 are affected. The issue was resolved in 0.31.1. No other products or versions are listed as vulnerable.

Risk and Exploitability

The CVSS score of 5.3 reflects a moderate severity. The EPSS score is 2%, but a public exploit has been released, indicating that an attacker could launch the attack remotely through the untrusted .mcp.json auto-spawn mechanism or by planting binaries in the $PATH before the trust prompt is confirmed. Because it is not listed in CISA’s KEV catalog, it has not yet been widely reported by CISA, yet the presence of a public exploit warrants prompt attention.

Generated by OpenCVE AI on September 23, 2026 at 15:41 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Moonshot AI Kimi Code to version 0.31.1 or later to apply the command injection fix.
  • Verify that the installed binaries for fd and stty use absolute paths and have correct permissions to prevent path planting.
  • Remove or quarantine any untrusted .mcp.json files and restrict untrusted workspaces from executing arbitrary commands until verified.

Generated by OpenCVE AI on September 23, 2026 at 15:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 22 Sep 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 22 Sep 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Moonshotai
Moonshotai kimi Code
Vendors & Products Moonshotai
Moonshotai kimi Code

Tue, 22 Sep 2026 19:30:00 +0000


Tue, 22 Sep 2026 18:15:00 +0000

Type Values Removed Values Added
Description A security flaw has been discovered in Moonshot AI Kimi Code up to 0.31.0. The affected element is an unknown function of the file agent-core-v2/src/agent/mcp/config-loader.ts of the component MCP Configuration Loader. The manipulation results in os command injection. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks. Upgrading to version 0.31.1 is sufficient to fix this issue. It is recommended to upgrade the affected component. Beyond the trust prompt, the fix resolves fd/stty binaries to absolute paths specifically "so untrusted workspaces cannot plant bare-name executables before confirmation," fixing a secondary $PATH path-planting vector alongside the primary untrusted-.mcp.json auto-spawn.
Title Moonshot AI Kimi Code MCP Configuration Loader config-loader.ts os command injection
First Time appeared Moonshot Ai
Moonshot Ai kimi Code
Weaknesses CWE-77
CWE-78
CPEs cpe:2.3:a:moonshot_ai:kimi_code:*:*:*:*:*:*:*:*
Vendors & Products Moonshot Ai
Moonshot Ai kimi Code
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}


Subscriptions

Moonshot Ai Kimi Code
Moonshotai Kimi Code
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-09-22T19:05:35.649Z

Reserved: 2026-09-22T12:42:33.085Z

Link: CVE-2026-95660

cve-icon Vulnrichment

Updated: 2026-09-22T19:05:20.243Z

cve-icon NVD

Status : Deferred

Published: 2026-09-22T18:17:37.750

Modified: 2026-09-22T19:16:59.953

Link: CVE-2026-95660

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-23T15:45:06Z

Weaknesses
  • CWE-77

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

  • CWE-78

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