Skip to content
HighVulnerability

CVE-2026-77474: destructive_command_guard (dcg) is a command-line safety tool that blocks destructive shell commands before AI coding…

Identifier
CVE-2026-77474
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.

Summary

destructive_command_guard (dcg), a command-line tool that blocks destructive shell commands before AI coding agents run them, is affected in versions prior to 0.6.6. Nested or unclosed $( and $(( substitutions cause the scanners reached through split_command_segments in src/packs/mod.rs to rescan the command suffix repeatedly, producing exponential-time work. A hung PreToolUse hook then fails open, letting a destructive command proceed.

Mitigation

Fixed in version 0.6.6.