Command-Line Safety Tool Vulnerability in Destructive Command Guard by Dicklesworthstone
CVE-2026-77474

7.1HIGH

Key Information:

Vendor
CVE Published:
16 October 2026

What is CVE-2026-77474?

The Destructive Command Guard, a command-line safety tool, is vulnerable due to inefficient rescanning of nested or unclosed command substitutions. When a command includes nested $() or $(( sequences, the tool may enter exponential time work processes, causing significant performance degradation and potentially allowing destructive commands to execute without proper checks. This is particularly concerning if a PreToolUse hook hangs, as it bypasses the safeguards intended to prevent command execution. The issue has been addressed in version 0.6.6, which enhances the tool's resilience against such nested scenarios.

Affected Version(s)

destructive_command_guard < 0.6.6

References

CVSS V3.1

Score:
7.1
Severity:
HIGH
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.