Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Malware

Exploit Analysis

Kilo Server Flaw Lets Cloned Repos Auto-Execute Plugin Code

A Full Disclosure report describes a vulnerability in the Kilo server that allows arbitrary code execution when a project is loaded from a cloned repository, rated CVSS 7.8 and classified as CWE-829.

MalwareAI

Key points

  • Kilo server reportedly executes plugin/MCP code bundled in a cloned repository automatically on project load
  • Classified as CWE-829 (untrusted code inclusion), with a CVSS score of 7.8
  • Vulnerable code path identified as InstanceBootstrap.run in packages/opencode/src/project/bootstrap.ts:44 plus the plugin loader
  • No CVE ID, fixed version, or official patch/workaround is mentioned in the report

According to a Full Disclosure mailing list post by a researcher using the handle "Agent Spooky's Fun Parade," the Kilo server will execute code supplied by a repository as soon as that repository's project is loaded. The issue is tracked under CWE-829 (inclusion of functionality from an untrusted control sphere) and has been assigned a CVSS score of 7.8.

The report points to the code path responsible: InstanceBootstrap.run, located at packages/opencode/src/project/bootstrap.ts:44, which feeds into Kilo's plugin/MCP loader. In practice, this means that cloning and opening a malicious or compromised repository in Kilo can trigger execution of attacker-controlled plugin code without further user action beyond loading the project.

No affected version range, patch, or official advisory is cited in the source material, and no CVE identifier is mentioned. The report does not state whether the vendor has acknowledged the issue or released a fix, nor does it describe a workaround.

Because the flaw hinges on treating repository contents (plugin/MCP definitions) as trusted and executable on project load, any environment where developers routinely clone and open unfamiliar or third-party repositories in Kilo is at risk. Until further guidance is available, teams relying on Kilo should treat untrusted repositories with the same caution as untrusted executable code and avoid opening unknown projects in affected installations.

What to do

  1. Avoid cloning or opening untrusted repositories in Kilo until the vendor issues guidance
  2. Monitor for an official advisory or patch addressing the bootstrap/plugin loader code path
  3. Review any recently opened third-party projects in Kilo for unexpected plugin or MCP activity

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

Full Disclosureseclists.org

“Kilo server runs repo-supplied plugin/MCP code on project load; CWE-829, CVSS 7.8”

Posted by Agent Spooky's Fun Parade via Fulldisclosure on Dec 01 Agent Spooky's Fun Parade hereby reports, with the mild horror of a player piano that performs any roll slipped onto the spindle the instant you name the tune, code execution from a cloned repository in the Kilo server, wired through InstanceBootstrap.run at packages/opencode/src/project/bootstrap.ts:44 and the plugin loader at pack…

More on this topic