CVE-2026-77474CWE-400CWE-407CWE-693denial-of-service

CVE-2026-77474

High · published October 16, 2026

CVSS v3.1
7.1
EPSS
0%
Percentile
2.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00124 · 2.0th percentile
Weaknesses
CWE-400 · Uncontrolled Resource Consumption; CWE-407 · Inefficient Algorithmic Complexity; CWE-693 · Protection Mechanism Failure
Published
2026-10-16T21:17Z
References (4)
EPSS history
Timeline
  • 18 OCT 03:32Z
    EPSS moved — → 0%
    epss
  • 16 OCT 16:10Z
    dcg: Exponential-time command-substitution preprocessing lets a crafted command hang dcg and bypass the guard via hook-timeout fail-open
    cvelistv5
  • 16 OCT 16:10Z
    dcg: Exponential-time command-substitution preprocessing lets a crafted command hang dcg and bypass the guard via hook-timeout fail-open
    cvelistv5