{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.0.845"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "033b64be855c0d2c0767d8dd225fe0129ebe05da"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "25c4c7ecfc8d030380ab11fbacd412db210193fc"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v0.0.845",
                "range": [
                  {
                    "fixed": "57677f8f844f4533fcb018b4a9ca9d53d679664d"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "57677f8f844f4533fcb018b4a9ca9d53d679664d"
            },
            {
              "fixed": "033b64be855c0d2c0767d8dd225fe0129ebe05da"
            },
            {
              "fixed": "25c4c7ecfc8d030380ab11fbacd412db210193fc"
            }
          ],
          "repo": "https://github.com/vitali87/code-graph-rag",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-wvxg-744g-6pcg"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-78",
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137185.json"
  },
  "details": "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.",
  "id": "CVE-2026-137185",
  "modified": "2026-11-30T19:45:21.740244127Z",
  "published": "2026-11-30T18:38:13.612Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137185.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitali87/code-graph-rag/commit/033b64be855c0d2c0767d8dd225fe0129ebe05da"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitali87/code-graph-rag/commit/25c4c7ecfc8d030380ab11fbacd412db210193fc"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitali87/code-graph-rag/releases/tag/v0.0.845"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/vitali87/code-graph-rag/security/advisories/GHSA-wvxg-744g-6pcg"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137185"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Code Graph RAG: EXECUTE_SHELL allowlist and dangerous-pattern blacklist both miss xargs \u003cinterpreter\u003e -c — approved/yolo shell commands reach unconfined RCE"
}