> CVE-2026-77474 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-10-16 17:17
MODIFIED
2026-10-16 17:17
CVSS_SCORE V3
7.1
DATA SOURCES:
NVD đź”— 2026-10-16 OSV đź”— 2026-10-17

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.
Cette CVE est récente (1 day ago) - les informations détaillées peuvent prendre quelques jours.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
EXPLOITABILITY
1.8
IMPACT
5.2

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-400 CWE-407 CWE-693

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

dcg: Exponential-time command-substitution preprocessing lets a crafted command hang dcg and bypass the guard via hook-timeout fail-open

AFFECTED PACKAGES:
Unknown / Unknown
43 versions affected
ALIASES:
GHSA-4cfr-w3v5-w5j5

> HISTORIQUE DES MODIFICATIONS

Première apparition
16/10/2026 17:17
Source: NVD
Total des modifications: 0 Dernière mise à jour: 1 day ago

> REFERENCES

https://github.com/Dicklesworthstone/destructive_command_guard/commit/ba16bdd074...
https://github.com/Dicklesworthstone/destructive_command_guard/issues/189
https://github.com/Dicklesworthstone/destructive_command_guard/releases/tag/v0.6...
https://github.com/Dicklesworthstone/destructive_command_guard/security/advisori...
« BACK_TO_HOME