/

CVE-2026-109560

Severity:

HIGH RISK

(7.5)

Command Authorization Bypass (CWE-863) in Continue CLI

CVE-2026-109560

Deferred

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-863

Impact:

Arbitrary Command Execution

Severity:

HIGH RISK

(7.5)

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

Continue CLI contains a permission-checking flaw that may allow commands considered unapproved to run when they are appended to an approved Bash command prefix.

An attacker who can influence repository files or fetched content may cause the agent to construct commands that execute with the user's privileges.

Continue CLI contains a permission-checking flaw that may allow commands considered unapproved to run when they are appended to an approved Bash command prefix.

An attacker who can influence repository files or fetched content may cause the agent to construct commands that execute with the user's privileges.

Affected context

The vulnerability can occur in Continue CLI deployments that use Bash prefix rules to approve commands and allow an agent to process untrusted repository content or fetched pages. It becomes risky when attacker-controlled instructions can influence command construction and the authorization logic evaluates only the initial approved prefix rather than the complete command.

The vulnerability can occur in Continue CLI deployments that use Bash prefix rules to approve commands and allow an agent to process untrusted repository content or fetched pages. It becomes risky when attacker-controlled instructions can influence command construction and the authorization logic evaluates only the initial approved prefix rather than the complete command.

Exploit preconditions

  • Attack surface: Continue CLI command execution and agent instruction processing
  • Required access: Ability to influence repository files, fetched pages, or other content consumed by the agent
  • Trigger point: Agent-generated shell commands checked against allowed Bash prefix rules
  • Why exploitation is possible: The permission check may approve a trusted command prefix while failing to authorize additional command segments appended through shell control operators
  • Attack surface: Continue CLI command execution and agent instruction processing
  • Required access: Ability to influence repository files, fetched pages, or other content consumed by the agent
  • Trigger point: Agent-generated shell commands checked against allowed Bash prefix rules
  • Why exploitation is possible: The permission check may approve a trusted command prefix while failing to authorize additional command segments appended through shell control operators

Why this happens

The underlying issue is an authorization failure in command validation. The implementation treats an allowed command prefix as sufficient authorization without reliably evaluating the complete shell command and its control-flow operators.

This maps to CWE-863: Incorrect Authorization, because the system permits an operation beyond the scope intended by its permission policy. Insecure patterns include prefix-only comparisons, incomplete shell parsing, and trusting agent-generated command structure without separating or independently authorizing each operation.

The underlying issue is an authorization failure in command validation. The implementation treats an allowed command prefix as sufficient authorization without reliably evaluating the complete shell command and its control-flow operators.

This maps to CWE-863: Incorrect Authorization, because the system permits an operation beyond the scope intended by its permission policy. Insecure patterns include prefix-only comparisons, incomplete shell parsing, and trusting agent-generated command structure without separating or independently authorizing each operation.

Potential impact

  • An attacker may execute unauthorized operating-system commands
  • Commands may run with the privileges of the Continue CLI user
  • Local files, credentials, or source code could be accessed or modified
  • Development environments may be altered or used for further compromise
  • Malicious repository content could influence downstream developer workflows
  • An attacker may execute unauthorized operating-system commands
  • Commands may run with the privileges of the Continue CLI user
  • Local files, credentials, or source code could be accessed or modified
  • Development environments may be altered or used for further compromise
  • Malicious repository content could influence downstream developer workflows

General mitigation guidance

Mitigation generally focuses on authorizing complete commands rather than relying on textual prefixes.

Common defensive patterns include:

  • Prefer explicit, structured command allowlists over shell-prefix matching
  • Parse commands according to the target shell and independently authorize each command segment
  • Avoid invoking a shell when an argument-array or purpose-built API is sufficient
  • Treat repository files, fetched pages, and agent instructions as untrusted input
  • Require confirmation or stronger policy checks for commands with elevated impact
  • Run the CLI with the minimum filesystem, network, and operating-system privileges necessary
  • Apply environment isolation and restrict access to secrets and sensitive paths

Mitigation generally focuses on authorizing complete commands rather than relying on textual prefixes.

Common defensive patterns include:

  • Prefer explicit, structured command allowlists over shell-prefix matching
  • Parse commands according to the target shell and independently authorize each command segment
  • Avoid invoking a shell when an argument-array or purpose-built API is sufficient
  • Treat repository files, fetched pages, and agent instructions as untrusted input
  • Require confirmation or stronger policy checks for commands with elevated impact
  • Run the CLI with the minimum filesystem, network, and operating-system privileges necessary
  • Apply environment isolation and restrict access to secrets and sensitive paths

How teams detect issues like this

Detection can include static analysis and code review checks for shell execution built from agent-controlled or repository-controlled text, prefix-only authorization comparisons, and use of shell control operators after approved command fragments.

Security reviews should verify that complete command structures are parsed and authorized, that untrusted content cannot alter execution policy, and that subprocesses avoid unnecessary shell interpretation. Policy enforcement may include repository-content trust rules, command allowlists, confirmation gates, and automated review tools that flag dynamic shell construction.

Detection can include static analysis and code review checks for shell execution built from agent-controlled or repository-controlled text, prefix-only authorization comparisons, and use of shell control operators after approved command fragments.

Security reviews should verify that complete command structures are parsed and authorized, that untrusted content cannot alter execution policy, and that subprocesses avoid unnecessary shell interpretation. Policy enforcement may include repository-content trust rules, command allowlists, confirmation gates, and automated review tools that flag dynamic shell construction.

Sources

SourceLink
github.comgithub.com/continuedev/continue
github.comgithub.com/continuedev/continue/blob/d3f60ba9dd3fb5bfd3c91d6fbb41ce1aa768db45/extensions/cli/src/permissions/permissionChecker.ts#L162-L174
github.comgithub.com/continuedev/continue/blob/d3f60ba9dd3fb5bfd3c91d6fbb41ce1aa768db45/extensions/cli/src/permissions/policyWriter.ts#L18-L31
github.comgithub.com/continuedev/continue/issues/13288
vulncheck.comvulncheck.com/advisories/continue-cli-through-1.5.47-bash-permission-rule-bypass-via-command-chaining

Frequently asked

questions

It is not necessarily a direct network attack. Exploitation generally requires a way to place or deliver content that Continue CLI will process, such as repository files or fetched pages.

An attacker needs the ability to influence content consumed by the agent and a workflow in which the agent can execute shell commands under the user's account.

Authorize complete, structured commands using explicit allowlists, avoid unnecessary shell interpretation, and require confirmation for sensitive operations.

Treat agent inputs and external content as untrusted, test authorization against chained-command cases, enforce least privilege, and review command-execution policies in CI and code review.

It is not necessarily a direct network attack. Exploitation generally requires a way to place or deliver content that Continue CLI will process, such as repository files or fetched pages.

An attacker needs the ability to influence content consumed by the agent and a workflow in which the agent can execute shell commands under the user's account.

Authorize complete, structured commands using explicit allowlists, avoid unnecessary shell interpretation, and require confirmation for sensitive operations.

Treat agent inputs and external content as untrusted, test authorization against chained-command cases, enforce least privilege, and review command-execution policies in CI and code review.

Find out what's already
exploitable in your codebase.