/

CVE-2026-105135

Severity:

CRITICAL RISK

(10.0)

Code Injection (CWE-74) in MindSearch Planner Agent

CVE-2026-105135

Deferred

Vulnerability type

Category:

Code Injection

CWE:

CWE-74, CWE-94

Impact:

Remote Code Execution

Severity:

CRITICAL RISK

(10.0)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A critical code injection vulnerability in InternLM MindSearch allows attacker-controlled input supplied to the Planner Agent's execution flow to be interpreted as executable code. Because the affected function can be reached remotely, a successful attack may enable arbitrary code execution in the service context.

Affected context

The issue affects InternLM MindSearch 0.1.0 when the Planner Agent invokes ExecutionAction.run in mindsearch/agent/graph.py and processes externally influenced inputs. Deployments are at greater risk when planner requests or agent inputs can be submitted remotely and are passed into execution logic without strict separation between data and code.

Exploit preconditions

  • Attack surface: The remotely reachable Planner Agent execution workflow
  • Required access: Ability to submit or influence inputs accepted by the affected service; authentication requirements depend on deployment configuration
  • Trigger point: Processing of the inputs argument by ExecutionAction.run
  • Why exploitation is possible: Attacker-controlled data may reach a code-execution path without adequate validation, escaping, or separation from executable expressions

Why this happens

The underlying bug is an unsafe interpretation of externally influenced input as executable logic. When application data is incorporated into dynamic execution behavior instead of being treated strictly as data, specially formed input may alter the intended operation and cause unintended code execution. This maps primarily to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component, with a related relationship to CWE-94: Improper Control of Generation of Code.

Potential impact

  • An attacker may execute arbitrary code with the privileges of the MindSearch process.
  • The service could be compromised or disrupted.
  • Sensitive prompts, configuration, credentials, or generated results could be exposed.
  • An attacker could use the compromised process for lateral movement or data manipulation.

General mitigation guidance

Mitigation generally focuses on eliminating dynamic code interpretation of untrusted input and reducing the trust placed in agent-generated or externally supplied values.

Common defensive patterns include:

  • Replacing dynamic execution with explicit, allowlisted operations and structured arguments.
  • Treating planner inputs as data and enforcing strict schemas, types, length limits, and character constraints.
  • Separating agent planning from privileged execution through a narrowly scoped action interface.
  • Running the service with least-privilege permissions, isolated credentials, and restricted network access.
  • Applying sandboxing and resource limits to any unavoidable execution functionality.
  • Ensuring validation occurs before inputs reach interpreters, evaluators, templates, or command-building logic.

How teams detect issues like this

Detection efforts can include:

  • Static analysis for eval, exec, dynamic imports, shell invocation, template evaluation, and indirect interpreter calls involving request or agent data.
  • Code review checks for planner outputs or function arguments being concatenated into executable expressions.
  • Tests that submit type-invalid, boundary, and metacharacter-containing inputs to confirm they remain data.
  • Runtime monitoring for unexpected child processes, command interpreters, filesystem changes, or outbound connections from the MindSearch service.
  • Policy enforcement requiring allowlisted actions and forbidding dynamic execution in remotely reachable code paths.

Automated code-review and application-security tools may help identify suspicious data-to-code flows, but findings should be validated against the application's execution model.

Sources

SourceLink
gist.github.comgist.github.com/DReazer/7ad46df9da73d0cf414276e4195b2183
vuldb.comvuldb.com/cve/CVE-2026-105135
vuldb.comvuldb.com/submit/943315
vuldb.comvuldb.com/vuln/413352
vuldb.comvuldb.com/vuln/413352/cti

Frequently asked

questions

Yes, the reported attack path is remote when an attacker can reach the Planner Agent workflow and influence the inputs processed by ExecutionAction.run. Whether authentication is required depends on the deployment's access controls.

The attacker needs the ability to submit or influence inputs accepted by the affected service. The available attack surface and required privileges vary with how MindSearch is exposed and integrated.

Remove dynamic interpretation of untrusted input and replace it with explicit, allowlisted actions that accept validated structured data. Any unavoidable execution should be isolated and run with minimal privileges.

Maintain a strict data-versus-code boundary, review agent execution paths, apply schema validation before dispatch, test untrusted input flows, and monitor for unexpected process or network activity.

Find out what's already
exploitable in your codebase.