CVE-2026-77474Dicklesworthstone destructive_command_guard
High 7.1
Follow: this CVE · Dicklesworthstone · Dicklesworthstone destructive_command_guard We alert you by email or Slack (account required).
- Priority
- 43
- CVSS 3.1
- 7.1
- EPSS
- —
- Auth required
- Yes
- Published
- Oct 16, 2026
- Updated
- Oct 19, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for destructive_command_guard.
Affected products
- Dicklesworthstone · destructive_command_guard
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.