- Accueil
- Vulnérabilités
- CVE-2026-77474
CVE-2026-77474
dcg: Exponential-time command-substitution preprocessing lets a crafted command hang dcg and bypass the guard via hook-timeout fail-open
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Dicklesworthstone (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| destructive_command_guard | Versions non précisées | — | CNA (éditeur ou attributeur) |
Correctif
Non renseigné par l’éditeur.
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Références
- https://github.com/Dicklesworthstone/destructive_command_guard/security/advisories/GHSA-4cfr-w3v5-w5j5x_refsource_CONFIRM
- https://github.com/Dicklesworthstone/destructive_command_guard/issues/189x_refsource_MISC
- https://github.com/Dicklesworthstone/destructive_command_guard/commit/ba16bdd074b045329dc0ca6ec9a08c44403cfe1bx_refsource_MISC
- https://github.com/Dicklesworthstone/destructive_command_guard/releases/tag/v0.6.6x_refsource_MISC
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H(CVSS 3.1, CNA:GitHub_M)- Faiblesse
- CWE-400 · Autre (CWE-400)