CVE-2026-77474 Denial of service in destructive command guard
Crafted shell commands cause exponential-time processing, hanging the tool and allowing destructive commands to bypass safety guards due to fail-open behavior.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-77474?
CVE-2026-77474 is a high-severity denial of service vulnerability in Dicklesworthstone destructive_command_guard, published on 16 Oct 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
destructive_command_guard (dcg) is a command-line safety tool that blocks destructive shell commands before AI coding agents run them. Prior to 0.6.6, nested or unclosed substitutions are recursively rescanned after an inner scan returns unterminated, producing exponential-time work. The affected scanners are reached through split_command_segments in src/packs/mod.rs. a destructive command followed by nested or unclosed $( or $(( sequences. nested or unclosed $( and $(( sequences cause repeated rescanning of the remaining command suffix. a hung PreToolUse hook fails open, allowing the destructive command to proceed. This issue is fixed in version 0.6.6.
Which versions are affected by CVE-2026-77474?
How do I fix CVE-2026-77474?
No fix has been published for CVE-2026-77474 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-77474 being exploited?
There is no known exploitation of CVE-2026-77474 in the wild and no public exploit code.
Sources
Also known as GHSA-4cfr-w3v5-w5j5.