CVE-2026-77474Dicklesworthstone Destructive Command Guard uncontrolled resource consumption
CVSS score
7.1
High
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.12%
0.12% chance of exploitation in the next 30 days, higher than 2.13% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running Dicklesworthstone Destructive Command Guard and compare its version with the affected versions.
Update to a fixed version
- Update Destructive Command Guard to 0.6.6 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| Dicklesworthstone Destructive Command Guard | < 0.6.6 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-77474 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.1% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-77474?
CVE-2026-77474 has a CVSS 3.1 base score of 7.1 (high).
Which versions are affected?
Dicklesworthstone Destructive Command Guard (< 0.6.6)
Is there a patch for CVE-2026-77474?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/Dicklesworthstone/destructive_command_guard/commit/ba16bdd074b045329dc0ca6ec9a08c44403cfe1b
- github.com/Dicklesworthstone/destructive_command_guard/issues/189
- github.com/Dicklesworthstone/destructive_command_guard/releases/tag/v0.6.6
- github.com/Dicklesworthstone/destructive_command_guard/security/advisories/GHSA-4cfr-w3v5-w5j5
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.