Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Dicklesworthstone destructive_command_guard
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

destructive_command_guard(DCG)是一款命令行安全工具,旨在在 AI 编码代理执行破坏性 Shell 命令之前将其拦截。在 0.6.6 版本之前,若遇到嵌套或未闭合的变量替换(substitutions),当内部扫描返回“未终止”状态时,系统会递归地重新扫描,导致计算工作量呈指数级增长。受影响的扫描器通过 中的 函数被调用。当一条破坏性命令后跟随嵌套或未闭合的 或 序列时,这些序列会引发对命令剩余后缀的重复重新扫描。此外,若 钩子因挂起(hung)而失败,其默认行为为“失败即放行”(fai

CVSS 7.1 · High EPSS 0.12% · P2

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 1

VendorProduct Version RangeStatus
Dicklesworthstone destructive_command_guard < 0.6.6 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-77474

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
dcg: Exponential-time command-substitution preprocessing lets a crafted command hang dcg and bypass the guard via hook-timeout fail-open
Source: CVE Program / CVE List V5
Vulnerability 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: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
未加控制的资源消耗(资源穷尽)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Dicklesworthstone destructive_command_guard < 0.6.6 -

II. Public POCs for CVE-2026-77474

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-77474

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-77474 (1)

Vendor Pages for CVE-2026-77474 (1)

Other References for CVE-2026-77474 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-77474

No comments yet


Leave a comment