CVE-2026-76072

Continue CLI through 1.5.47 Incomplete Destructive Command Denylist in Headless and Auto Mode

Published Aug 24, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
Description
The Continue CLI applies an incomplete denylist as its only barrier to destructive shell commands when running unattended. In headless mode and auto mode the default policy in extensions/cli/src/permissions/defaultPolicies.ts grants the Bash tool the allow permission, and permissionChecker.ts hard-blocks a command only when the terminal-security evaluator returns a disabled verdict, so isCriticalCommand in packages/terminal-security/src/evaluateTerminalCommandSecurity.ts is the sole control. Its dangerous-path test matches only /, /*, ~, ~/*, /usr, /etc, /bin and /sbin and their prefixes, so a recursive forced removal of /home, /root, /var, /opt or /srv is not disabled. The command line is parsed with shell-quote, which reduces $HOME to an empty token, so rm -rf $HOME also fails the dangerous-path test while the shell re-expands the variable when the command is spawned. find with -delete is rated high risk rather than disabled, and shred, wipefs, truncate and pkexec are not handled. Because the agent autonomously reads content it does not control, including fetched web pages, repository files and issue text, an indirect prompt injection in that content can cause an unattended run to destroy the invoking user's data.

Analysis

AI-generated

Technical impact

The Continue CLI implements an incomplete denylist as its sole protection against destructive shell commands when it runs unattended in headless or auto mode. The vulnerable logic allows commands that recursively remove critical system directories such as /home, /root, /var, /opt and /srv to pass the dangerous‑path filter. Additionally, commands like rm -rf $HOME, find with -delete, shred, wipefs, truncate and pkexec bypass the current checks, as the use of shell-quote expands shell variables only at execution time. This flaw enables an attacker to finalise destructive operations that permanently erase user data or system files, resulting in irreversible loss of volume contents and potential service discontinuity.

Affected Systems

Vendors and products affected include Continue by Continue Development, specifically the Continue CLI tool. The vulnerability stems from files in the extensions/cli/src/permissions/defaultPolicies.ts and packages/terminal-security/src/evaluateTerminalCommandSecurity.ts within the CLI package.

Risk and Exploitability

The CVSS score of 8.3 indicates very high severity. EPSS is not available so the current exploitation probability cannot be quantified, and the vulnerability is not listed in the CISA KEV catalog. Likely exploitation requires the CLI to run in headless or auto mode with unattended execution. An attacker can provide malicious prompt content that the agent autonomously reads—such as a compromised repository file or a malicious web page—to trigger destructive shell commands. Once executed, the damage is immediate and recoverable only with backups.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official update to the Continue CLI that addresses this issue.
  • If updating immediately is not possible, disable headless and auto modes or prevent the CLI from running unattended commands to stop the evaluator from executing destructive operations.
  • Manually augment the terminal‑security evaluator to block recursive deletions of critical directories such as /home, /root, /var, /opt, and /srv, and to reject commands like find -delete, shred, wipefs, truncate, and pkexec.

Generated by OpenCVE AI on August 24, 2026 at 20:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Continuedev
Continuedev continue
Vendors & Products Continuedev
Continuedev continue
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The Continue CLI applies an incomplete denylist as its only barrier to destructive shell commands when running unattended. In headless mode and auto mode the default policy in extensions/cli/src/permissions/defaultPolicies.ts grants the Bash tool the allow permission, and permissionChecker.ts hard-blocks a command only when the terminal-security evaluator returns a disabled verdict, so isCriticalCommand in packages/terminal-security/src/evaluateTerminalCommandSecurity.ts is the sole control. Its dangerous-path test matches only /, /*, ~, ~/*, /usr, /etc, /bin and /sbin and their prefixes, so a recursive forced removal of /home, /root, /var, /opt or /srv is not disabled. The command line is parsed with shell-quote, which reduces $HOME to an empty token, so rm -rf $HOME also fails the dangerous-path test while the shell re-expands the variable when the command is spawned. find with -delete is rated high risk rather than disabled, and shred, wipefs, truncate and pkexec are not handled. Because the agent autonomously reads content it does not control, including fetched web pages, repository files and issue text, an indirect prompt injection in that content can cause an unattended run to destroy the invoking user's data.
Title Continue CLI through 1.5.47 Incomplete Destructive Command Denylist in Headless and Auto Mode
First Time appeared Continue
Continue continue
Weaknesses CWE-184
CPEs cpe:2.3:a:continue:continue:*:*:*:*:*:node.js:*:*
Vendors & Products Continue
Continue continue
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H'}

cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 24, 2026, 6:36 PM
Reserved
Aug 18, 2026, 9:04 PM
Status
Deferred
Published
Aug 24, 2026, 6:17 PM
Modified
Oct 12, 2026, 3:10 PM