CVE-2026-139889
Unreadable tool policy could restore unrestricted agent tools
Moonshot AI · Kimi Code
First documented disclosure · Review checkpoint
Summary
An invalid initial tool-policy configuration could leave tools enabled that an operator intended to deny.
Severity and exploitation evidence
Medium · 4.8/10 · CVSS 4.0. Severity source.
Exploitation not established: The reporter used the real CLI and shell tool with a scripted, OpenAI-compatible test endpoint. This establishes a controlled policy failure, not a live-model prompt-injection campaign or victim compromise.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
When config.toml cannot be read or parsed, the initial policy path yields undefined tool configuration, which is interpreted as an unrestricted tool set.
Conditions required
The attacker can corrupt, replace or make the local policy file unreadable before initialization; an agent allowed to write that file can affect a later startup.
Potential impact
Previously disabled shell or network tools may become available with the agent process’s permissions.
Affected versions and configurations
The CNA describes Kimi Code through 2.5.2 and enumerates 2.5.0–2.5.2; the reporter also tested 2.4.1.
Fix and mitigation status
No released fix verified. Pull request 4761 remained open and unmerged in the reviewed original.
Practical next steps
Protect the policy file from agent writes and enforce restrictions outside the process. Verify fail-closed initialization before relying on the proposed correction.
Operating lesson
Missing or invalid policy must deny authority instead of restoring permissive defaults.
Evidence and limits
CVE publication: 2026-11-30. CVSS 4.0 4.8 is the VulDB CNA assessment. November 9 is the explanatory public PR, earlier than November 30 CVE publication. The proposed patch rejects invalid initial policy and retains the last valid policy on reload. A patch tag in the CNA does not establish a merged or released fix.
Sources
- VulDB CVE authority record
Primary source ·
- Original report and proposed correction
Primary source ·