Code Graph RAGに遠隔からコードを実行される脆弱性、0.0.845で修正
Summary
Code Graph RAGの0.0.844以前では、許可されたxargsを経由して任意のインタープリターコードを実行される脆弱性が見つかりました。AIモデルが出したコマンドを攻撃者が操作すると、プロジェクトの外でプロセスの実行ユーザーの権限によりコードが動くおそれがあります。修正版の0.0.845で直ります。対象の方は更新をお願いします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Code Graph RAGの0.0.844以前では、許可されたxargsを経由して任意のインタープリターコードを実行される脆弱性が見つかりました。AIモデルが出したコマンドを攻撃者が操作すると、プロジェクトの外でプロセスの実行ユーザーの権限によりコードが動くおそれがあります。修正版の0.0.845で直ります。対象の方は更新をお願いします。
Original description The description as published by the source.
Code Graph RAG is an AI-powered knowledge graph and retrieval system for querying, understanding, and editing multi-language codebases. In 0.0.844 and earlier, execute_shell_command in codebase_rag/tools/shell_command.py validates only the base command, not the program launched by allowlisted xargs. Its dangerous-pattern filter misses Python interpreter code using modules such as subprocess instead of importing os, allowing an unlisted interpreter to execute arbitrary code. An attacker influencing a model-issued command can execute code outside the project root as the process user after human approval in default mode, or without approval in --yolo mode. The noninteractive shell wrapper does not allow xargs. This issue is fixed in 0.0.845.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web github.com