{"id":"CVE-2026-137185","aliases":["CVE-2026-137185"],"related":[],"kind":"vulnerability","state":"published","title":"Code Graph RAG: EXECUTE_SHELL allowlist and dangerous-pattern blacklist both miss xargs <interpreter> -c — approved/yolo shell commands reach unconfined RCE","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"}],"published":"2026-11-30T18:38:13.612Z","modified":"2026-12-01T14:18:12.733Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"}],"cwes":["CWE-78","CWE-863"],"affected":[{"ranges":[{"version":"< 0.0.845","status":"affected"}],"vendor":"vitali87","product":"code-graph-rag","source":"cvelist"}],"references":[{"url":"https://github.com/vitali87/code-graph-rag/security/advisories/GHSA-wvxg-744g-6pcg","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vitali87/code-graph-rag/commit/033b64be855c0d2c0767d8dd225fe0129ebe05da","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vitali87/code-graph-rag/commit/25c4c7ecfc8d030380ab11fbacd412db210193fc","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vitali87/code-graph-rag/releases/tag/v0.0.845","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-12-01T13:22:49.202Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-137185","url":"https://www.cve.org/CVERecord?id=CVE-2026-137185","licence":"CVE Terms of Use","modified":"2026-12-01T13:23:15.496Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-137185","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137185","licence":"Public domain","modified":"2026-12-01T14:18:12.733Z"}],"updatedAt":"2026-12-01T14:32:17.197Z","epss":{"score":0.00234,"percentile":0.15391,"date":"2026-12-01T12:00:22.000Z"}}