A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      Digital Forensics, IRR & Breach Readiness
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-25046

CVE-2026-25046: Kimi Agent SDK RCE Vulnerability

CVE-2026-25046 is a remote code execution flaw in Kimi Agent SDK's development scripts that allows arbitrary command execution via shell metacharacters. This article covers technical details, affected versions, and mitigation.

Published: January 29, 2026

CVE-2026-25046 Overview

CVE-2026-25046 is a Command Injection vulnerability (CWE-77) affecting the Kimi Agent SDK, a set of libraries that expose the Kimi Code (Kimi CLI) agent runtime in applications. The vsix-publish.js and ovsx-publish.js development scripts pass filenames to execSync() as shell command strings, allowing filenames containing shell metacharacters like $(cmd) to execute arbitrary commands.

Critical Impact

This vulnerability allows arbitrary command execution through malicious filenames in development scripts, though it only affects developers working with the repository source code - end users of the published VSCode extension are not affected.

Affected Products

  • Kimi Agent SDK versions prior to 0.1.6
  • Development environments using vsix-publish.js script
  • Development environments using ovsx-publish.js script

Discovery Timeline

  • 2026-01-29 - CVE CVE-2026-25046 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2026-25046

Vulnerability Analysis

This Command Injection vulnerability exists in the Kimi Agent SDK's development publishing scripts. The scripts vsix-publish.js and ovsx-publish.js construct shell commands by directly concatenating user-controllable filenames into command strings passed to Node.js's execSync() function. When .vsix files with specially crafted names containing shell metacharacters are present in the project directory, the shell interpreter processes these metacharacters during command execution.

The vulnerability requires local access, high-privilege user interaction, and specific conditions to exploit. It's important to note that this is a development-only vulnerability—the published VSCode extension does not include these vulnerable scripts, meaning end users installing the extension through normal channels are unaffected.

Root Cause

The root cause is improper neutralization of special elements used in command construction. The development scripts use execSync() with string-based command arguments rather than the safer execFileSync() with array-based arguments. This allows shell metacharacter interpretation when processing filenames, enabling command injection through crafted .vsix file names.

Attack Vector

The attack vector is local, requiring an attacker to place a maliciously named .vsix file in the project directory before a developer runs the publish scripts. The attacker would need to craft a filename containing shell metacharacters such as $(malicious_command) or backtick-enclosed commands. When the publish script processes this file, the embedded command would execute with the privileges of the developer running the script.

For example, a file named extension-$(whoami).vsix would cause the whoami command to be executed and its output interpolated into the command string when processed by the vulnerable scripts.

Detection Methods for CVE-2026-25046

Indicators of Compromise

  • Presence of .vsix files with unusual characters or command syntax in filenames (e.g., $(), backticks, semicolons)
  • Unexpected process spawning during execution of vsix-publish.js or ovsx-publish.js
  • Anomalous command execution patterns originating from Node.js processes running publish scripts

Detection Strategies

  • Monitor file creation events in development directories for .vsix files containing shell metacharacters in filenames
  • Implement file name validation in CI/CD pipelines before running publish scripts
  • Use process monitoring to detect unexpected child processes spawned during build operations

Monitoring Recommendations

  • Enable audit logging for command execution in development environments
  • Implement file integrity monitoring for project directories containing build artifacts
  • Review Node.js process trees during publish operations for anomalous subprocess creation

How to Mitigate CVE-2026-25046

Immediate Actions Required

  • Upgrade Kimi Agent SDK to version 0.1.6 or later
  • Audit all .vsix files in project directories for suspicious filenames before running publish scripts
  • Implement filename validation to reject files containing shell metacharacters

Patch Information

The vulnerability is fixed in Kimi Agent SDK version 0.1.6. The fix replaces the unsafe execSync() function with execFileSync() using array arguments, which prevents shell metacharacter interpretation. For more details, refer to the GitHub Security Advisory.

Workarounds

  • Ensure all .vsix files in the project directory have safe filenames (alphanumeric characters, hyphens, and underscores only) before running publish scripts
  • Implement a pre-publish validation script that checks for dangerous characters in filenames
  • Consider isolating publish script execution in a sandboxed environment with limited privileges
bash
# Configuration example
# Pre-publish filename validation script
# Run before executing vsix-publish.js or ovsx-publish.js

# Check for dangerous characters in .vsix filenames
for file in *.vsix; do
  if [[ "$file" =~ [\$\`\;\|\&\(\)] ]]; then
    echo "WARNING: Potentially malicious filename detected: $file"
    exit 1
  fi
done
echo "All .vsix filenames are safe"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechKimi

  • SeverityLOW

  • CVSS Score2.9

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-77
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-3268: PSI Probe Auth Bypass Vulnerability

  • CVE-2026-3265: Free-CRM Auth Bypass Vulnerability

  • CVE-2026-3264: Free-CRM RCE Vulnerability

  • CVE-2026-28280: osctrl-admin Stored XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • English
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use